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:
parent
95582f8bde
commit
d929f80532
@ -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 {
|
||||||
|
@ -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,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user