|
|
@ -162,8 +162,10 @@ function goHome () { |
|
|
|
|
|
|
|
|
|
|
|
function tryUnlockMetamask (password) { |
|
|
|
function tryUnlockMetamask (password) { |
|
|
|
return (dispatch) => { |
|
|
|
return (dispatch) => { |
|
|
|
|
|
|
|
dispatch(actions.showLoadingIndication()) |
|
|
|
dispatch(actions.unlockInProgress()) |
|
|
|
dispatch(actions.unlockInProgress()) |
|
|
|
_accountManager.submitPassword(password, (err, selectedAccount) => { |
|
|
|
_accountManager.submitPassword(password, (err, selectedAccount) => { |
|
|
|
|
|
|
|
dispatch(actions.hideLoadingIndication()) |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
|
dispatch(actions.unlockFailed()) |
|
|
|
dispatch(actions.unlockFailed()) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|