1
0
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:
Dan Finlay 2016-11-22 13:13:10 -08:00
parent 869d731319
commit c4056a861a

View File

@ -180,8 +180,8 @@ module.exports = class KeyringController extends EventEmitter {
if (cb) {
cb()
this.emit('update')
}
this.emit('update')
}
submitPassword (password, cb) {