diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-01-04 03:10:20 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-01-04 03:10:20 +0800 |
commit | 1b9906372b5e36eb7467c7186e866dba237c8b2f (patch) | |
tree | 29115994545a57bd17ab1670a203cf668fba7e43 /app | |
parent | b93cdd428b5013787f78a266bcb5ca84d26b9941 (diff) | |
download | tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.tar tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.tar.gz tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.tar.bz2 tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.tar.lz tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.tar.xz tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.tar.zst tangerine-wallet-browser-1b9906372b5e36eb7467c7186e866dba237c8b2f.zip |
Update UI state on ethStore updates
UI was remarkably not relying on ethStore for updates, so things like account balances were frozen until user activity.
Fixes #963
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/metamask-controller.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 3e27272b9..91def2569 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -60,6 +60,8 @@ module.exports = class MetamaskController { this.idStoreMigrator = new IdStoreMigrator({ configManager: this.configManager, }) + + this.ethStore.on('update', this.sendUpdate.bind(this)) } getState () { |