mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 20:39:08 +01:00
Revert one cb to previous state.
This commit is contained in:
parent
5bfb700fa8
commit
592b64a19f
@ -186,7 +186,7 @@ module.exports = class KeyringController extends EventEmitter {
|
||||
this.keyrings = keyrings
|
||||
this.setupAccounts()
|
||||
this.emit('update')
|
||||
cb()
|
||||
cb(null, this.getState())
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err)
|
||||
|
@ -161,7 +161,7 @@ function tryUnlockMetamask (password) {
|
||||
return (dispatch) => {
|
||||
dispatch(actions.showLoadingIndication())
|
||||
dispatch(actions.unlockInProgress())
|
||||
background.submitPassword(password, (err) => {
|
||||
background.submitPassword(password, (err, newState) => {
|
||||
dispatch(actions.hideLoadingIndication())
|
||||
if (err) {
|
||||
dispatch(actions.unlockFailed(err.message))
|
||||
|
Loading…
Reference in New Issue
Block a user