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:
parent
a96f892788
commit
c7b9adbfcb
@ -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 })
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user