Skip to content

Commit

Permalink
fix: visual lag when decrypting wallet, closes #442
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranjamie committed Jan 2, 2021
1 parent ee65ae0 commit e20f0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions app/modals/stacking/stacking-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ import {
import { DecryptWalletForm } from './steps/decrypt-wallet-form';
import { SignTxWithLedger } from './steps/sign-tx-with-ledger';
import { StackingFailed } from './steps/stacking-failed';
import { delay } from '@utils/delay';

enum StackingModalStep {
DecryptWalletAndSend,
Expand Down Expand Up @@ -206,6 +207,8 @@ export const StackingModal: FC<StackingModalProps> = props => {
};

setHasSubmitted(true);
await delay(100);

if (walletType === 'software') {
setIsDecrypting(true);

Expand Down
3 changes: 0 additions & 3 deletions app/store/stacking/stacking.reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ export const stackingSlice = createSlice({
[activeStackingTx.toString()]: (state, action: PayloadAction<{ txId: string }>) => {
state.contractCallTx = action.payload.txId;
},
// [activeStackingTx]: (state, action: PayloadAction<{ txId: string }>) => {
// state.contractCallTx = action.payload.txId;
// },
[removeStackingTx.toString()]: state => {
state.contractCallTx = null;
},
Expand Down

0 comments on commit e20f0e1

Please sign in to comment.