From 5a02e58f6287422a569f316fd4b2dd0144f50e99 Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Wed, 23 Nov 2016 13:49:54 -0800 Subject: Fix proper behavior for restoring accounts when password forgotten. --- ui/app/actions.js | 1 + ui/app/reducers/app.js | 1 + 2 files changed, 2 insertions(+) (limited to 'ui') diff --git a/ui/app/actions.js b/ui/app/actions.js index e78cf8a51..8f37b2e4c 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -197,6 +197,7 @@ function createNewVaultAndRestore (password, seed) { background.createNewVaultAndRestore(password, seed, (err) => { dispatch(actions.hideLoadingIndication()) if (err) return dispatch(actions.displayWarning(err.message)) + dispatch(actions.showAccountsPage()) }) } } diff --git a/ui/app/reducers/app.js b/ui/app/reducers/app.js index 27d84d8a6..1f40e90b3 100644 --- a/ui/app/reducers/app.js +++ b/ui/app/reducers/app.js @@ -233,6 +233,7 @@ function reduceApp (state, action) { isLoading: false, warning: null, scrollToBottom: false, + forgottenPassword: false, }) case actions.REVEAL_ACCOUNT: -- cgit v1.2.3