mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix logging out of old UI causing infinite spinner (#2914)
This commit is contained in:
parent
7c97b2f37c
commit
b8310ac62e
@ -925,9 +925,13 @@ function lockMetamask () {
|
|||||||
})
|
})
|
||||||
.then(newState => {
|
.then(newState => {
|
||||||
dispatch(actions.updateMetamaskState(newState))
|
dispatch(actions.updateMetamaskState(newState))
|
||||||
|
dispatch(actions.hideLoadingIndication())
|
||||||
|
dispatch({ type: actions.LOCK_METAMASK })
|
||||||
|
})
|
||||||
|
.catch(() => {
|
||||||
|
dispatch(actions.hideLoadingIndication())
|
||||||
dispatch({ type: actions.LOCK_METAMASK })
|
dispatch({ type: actions.LOCK_METAMASK })
|
||||||
})
|
})
|
||||||
.catch(() => dispatch({ type: actions.LOCK_METAMASK }))
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ function mapDispatchToProps (dispatch) {
|
|||||||
},
|
},
|
||||||
lockMetamask: () => {
|
lockMetamask: () => {
|
||||||
dispatch(actions.lockMetamask())
|
dispatch(actions.lockMetamask())
|
||||||
dispatch(actions.displayWarning(null))
|
dispatch(actions.hideWarning())
|
||||||
dispatch(actions.hideSidebar())
|
dispatch(actions.hideSidebar())
|
||||||
dispatch(actions.toggleAccountMenu())
|
dispatch(actions.toggleAccountMenu())
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user