mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix proper behavior for restoring accounts when password forgotten.
This commit is contained in:
parent
5251fb373f
commit
5a02e58f62
@ -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…
Reference in New Issue
Block a user