1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix issue #688 where fiat conversion does not persist when switching networks

This commit is contained in:
Frankie 2016-10-01 09:31:14 +08:00
parent 3db131de86
commit 0a8a25c818

View File

@ -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()
}