mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 09:23:21 +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) {
|
||||
cb()
|
||||
this.emit('update')
|
||||
}
|
||||
this.emit('update')
|
||||
}
|
||||
|
||||
submitPassword (password, cb) {
|
||||
|
Loading…
Reference in New Issue
Block a user