aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-10-02 05:01:10 +0800
committerGitHub <noreply@github.com>2016-10-02 05:01:10 +0800
commita52c497ad10a980ec9e84e1a9dcc5122c236bcc2 (patch)
tree0260578ae00104dad826f0b2ff6996cc87bdf130 /app/scripts
parent3db131de86b74b40a1bb29d68aa99de106401af1 (diff)
parentebf864ae6e0efe7acbd83314c4343a73db38564d (diff)
downloadtangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.tar
tangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.tar.gz
tangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.tar.bz2
tangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.tar.lz
tangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.tar.xz
tangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.tar.zst
tangerine-wallet-browser-a52c497ad10a980ec9e84e1a9dcc5122c236bcc2.zip
Merge pull request #689 from MetaMask/i#688
Fix for where fiat conversion does not persist when switching networks
Diffstat (limited to 'app/scripts')
-rw-r--r--app/scripts/metamask-controller.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/metamask-controller.js b/app/scripts/metamask-controller.js
index 2b10c8c35..9e1a885ae 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() || 'USD'
+ this.configManager.setCurrentFiat(currentFiat)
this.configManager.updateConversionRate()
this.scheduleConversionInterval()
}