1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-26 20:39:08 +01:00

Fix sendUpdate for new promisified getState method

This commit is contained in:
Dan Finlay 2017-01-03 11:15:06 -08:00
parent 1b9906372b
commit 33b4d213f1

View File

@ -163,8 +163,12 @@ module.exports = class MetamaskController {
}
sendUpdate () {
this.listeners.forEach((remote) => {
remote.sendUpdate(this.getState())
this.getState()
.then((state) => {
this.listeners.forEach((remote) => {
remote.sendUpdate(state)
})
})
}