Skip to content

Commit 3f26dfa

Browse files
committed
Fix wallet restoration edgecase
1 parent 997643e commit 3f26dfa

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

source/renderer/app/stores/WalletsStore.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,7 @@ export default class WalletsStore extends Store {
428428
};
429429

430430
@action _restoreWalletClose = () => {
431+
this._resumePolling();
431432
const { mnemonics, walletName, spendingPassword, restoredWallet } = this;
432433
const shouldDisplayAbortAlert =
433434
(mnemonics.length || walletName.length || spendingPassword.length) &&
@@ -440,9 +441,6 @@ export default class WalletsStore extends Store {
440441
this._restoreWalletResetData();
441442
this.actions.dialogs.closeActiveDialog.trigger();
442443
}
443-
if (restoredWallet) {
444-
this.goToWalletRoute(restoredWallet.id);
445-
}
446444
};
447445

448446
@action _restoreWalletCancelClose = () => {
@@ -707,7 +705,6 @@ export default class WalletsStore extends Store {
707705
this.restoreWalletStep = 3;
708706
});
709707
} finally {
710-
this._resumePolling();
711708
runInAction('end wallet restore', () => {
712709
this.isRestoring = false;
713710
});

0 commit comments

Comments
 (0)