diff options
author | Frankie <frankie.pangilinan@consensys.net> | 2016-10-01 09:31:14 +0800 |
---|---|---|
committer | Frankie <frankie.pangilinan@consensys.net> | 2016-10-01 09:31:14 +0800 |
commit | 0a8a25c818f4c3059998445730c632158deaaf43 (patch) | |
tree | 1635f15d4c63842b56a94f815235b4382e79d1c0 | |
parent | 3db131de86b74b40a1bb29d68aa99de106401af1 (diff) | |
download | tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.tar tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.tar.gz tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.tar.bz2 tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.tar.lz tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.tar.xz tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.tar.zst tangerine-wallet-browser-0a8a25c818f4c3059998445730c632158deaaf43.zip |
Fix issue #688 where fiat conversion does not persist when switching networks
-rw-r--r-- | app/scripts/metamask-controller.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js index 2b10c8c35..fceac5263 100644 --- a/app/scripts/metamask-controller.js +++ b/app/scripts/metamask-controller.js @@ -22,7 +22,8 @@ module.exports = class MetamaskController { this.idStore.setStore(this.ethStore) this.messageManager = messageManager this.publicConfigStore = this.initPublicConfigStore() - this.configManager.setCurrentFiat('USD') + var currentFiat = this.configManager.getCurrentFiat() ? this.configManager.getCurrentFiat() : 'USD' + this.configManager.setCurrentFiat(currentFiat) this.configManager.updateConversionRate() this.scheduleConversionInterval() } |