1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 01:39:44 +01:00

Fix routing bug

Where sometimes the account list was shown when first unlocking, after momentarily showing the detail panel.
This commit is contained in:
Dan Finlay 2016-05-04 20:37:39 -07:00
parent 95582f8bde
commit d929f80532
2 changed files with 2 additions and 1 deletions

View File

@ -108,7 +108,6 @@ function tryUnlockMetamask(password) {
return (dispatch) => { return (dispatch) => {
dispatch(this.unlockInProgress()) dispatch(this.unlockInProgress())
_accountManager.submitPassword(password, (err, selectedAccount) => { _accountManager.submitPassword(password, (err, selectedAccount) => {
dispatch(this.hideLoadingIndication())
if (err) { if (err) {
dispatch(this.unlockFailed()) dispatch(this.unlockFailed())
} else { } else {

View File

@ -109,7 +109,9 @@ function reduceApp(state, action) {
case actions.UNLOCK_METAMASK: case actions.UNLOCK_METAMASK:
return extend(appState, { return extend(appState, {
currentView: {}, currentView: {},
detailView: {},
transForward: true, transForward: true,
isLoading: false,
warning: null, warning: null,
}) })