mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
Move state update outside of conditional callback block
This commit is contained in:
parent
869d731319
commit
c4056a861a
@ -180,8 +180,8 @@ module.exports = class KeyringController extends EventEmitter {
|
|||||||
|
|
||||||
if (cb) {
|
if (cb) {
|
||||||
cb()
|
cb()
|
||||||
this.emit('update')
|
|
||||||
}
|
}
|
||||||
|
this.emit('update')
|
||||||
}
|
}
|
||||||
|
|
||||||
submitPassword (password, cb) {
|
submitPassword (password, cb) {
|
||||||
|
Loading…
Reference in New Issue
Block a user