|
|
@ -161,7 +161,7 @@ function tryUnlockMetamask (password) { |
|
|
|
return (dispatch) => { |
|
|
|
return (dispatch) => { |
|
|
|
dispatch(actions.showLoadingIndication()) |
|
|
|
dispatch(actions.showLoadingIndication()) |
|
|
|
dispatch(actions.unlockInProgress()) |
|
|
|
dispatch(actions.unlockInProgress()) |
|
|
|
background.submitPassword(password, (err) => { |
|
|
|
background.submitPassword(password, (err, newState) => { |
|
|
|
dispatch(actions.hideLoadingIndication()) |
|
|
|
dispatch(actions.hideLoadingIndication()) |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
dispatch(actions.unlockFailed(err.message)) |
|
|
|
dispatch(actions.unlockFailed(err.message)) |
|
|
|