Fix proper behavior for restoring accounts when password forgotten.

This commit is contained in:
Kevin Serrano 2016-11-23 13:49:54 -08:00
parent 5251fb373f
commit 5a02e58f62
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
2 changed files with 2 additions and 0 deletions

View File

@ -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())
})
}
}

View File

@ -233,6 +233,7 @@ function reduceApp (state, action) {
isLoading: false,
warning: null,
scrollToBottom: false,
forgottenPassword: false,
})
case actions.REVEAL_ACCOUNT: