1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

swap out set state for updateState

This commit is contained in:
Frankie 2017-02-01 15:00:41 -08:00
parent a96f892788
commit c7b9adbfcb

View File

@ -103,10 +103,7 @@ module.exports = class MessageManager extends EventEmitter{
}
_saveMsgList (msgList) {
this.emit('updateBadge')
let state = this.memStore.getState()
state.messages = msgList
this.memStore.putState(state)
this.memStore.updateState({ messages: msgList })
}