Skip to content

Commit

Permalink
Fix wallet restoration edgecase
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolaglumac committed Nov 19, 2021
1 parent 997643e commit 3f26dfa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/renderer/app/stores/WalletsStore.js
Expand Up @@ -428,6 +428,7 @@ export default class WalletsStore extends Store {
};

@action _restoreWalletClose = () => {
this._resumePolling();
const { mnemonics, walletName, spendingPassword, restoredWallet } = this;
const shouldDisplayAbortAlert =
(mnemonics.length || walletName.length || spendingPassword.length) &&
Expand All @@ -440,9 +441,6 @@ export default class WalletsStore extends Store {
this._restoreWalletResetData();
this.actions.dialogs.closeActiveDialog.trigger();
}
if (restoredWallet) {
this.goToWalletRoute(restoredWallet.id);
}
};

@action _restoreWalletCancelClose = () => {
Expand Down Expand Up @@ -707,7 +705,6 @@ export default class WalletsStore extends Store {
this.restoreWalletStep = 3;
});
} finally {
this._resumePolling();
runInAction('end wallet restore', () => {
this.isRestoring = false;
});
Expand Down

0 comments on commit 3f26dfa

Please sign in to comment.