Fix proper behavior for restoring accounts when password forgotten.

feature/default_network_editable
Kevin Serrano 8 years ago
parent 5251fb373f
commit 5a02e58f62
No known key found for this signature in database
GPG Key ID: 7CC862A58D2889B4
  1. 1
      ui/app/actions.js
  2. 1
      ui/app/reducers/app.js

@ -197,6 +197,7 @@ function createNewVaultAndRestore (password, seed) {
background.createNewVaultAndRestore(password, seed, (err) => { background.createNewVaultAndRestore(password, seed, (err) => {
dispatch(actions.hideLoadingIndication()) dispatch(actions.hideLoadingIndication())
if (err) return dispatch(actions.displayWarning(err.message)) if (err) return dispatch(actions.displayWarning(err.message))
dispatch(actions.showAccountsPage())
}) })
} }
} }

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

Loading…
Cancel
Save