Merge pull request #689 from MetaMask/i#688

Fix for where fiat conversion does not persist when switching networks
feature/default_network_editable
Dan Finlay 8 years ago committed by GitHub
commit a52c497ad1
  1. 2
      CHANGELOG.md
  2. 3
      app/scripts/metamask-controller.js

@ -2,6 +2,8 @@
## Current Master ## Current Master
- Fix bug where chosen FIAT exchange rate does no persist when switching networks
## 2.13.1 2016-09-23 ## 2.13.1 2016-09-23
- Fix a bug with estimating gas on Parity - Fix a bug with estimating gas on Parity

@ -22,7 +22,8 @@ module.exports = class MetamaskController {
this.idStore.setStore(this.ethStore) this.idStore.setStore(this.ethStore)
this.messageManager = messageManager this.messageManager = messageManager
this.publicConfigStore = this.initPublicConfigStore() this.publicConfigStore = this.initPublicConfigStore()
this.configManager.setCurrentFiat('USD') var currentFiat = this.configManager.getCurrentFiat() || 'USD'
this.configManager.setCurrentFiat(currentFiat)
this.configManager.updateConversionRate() this.configManager.updateConversionRate()
this.scheduleConversionInterval() this.scheduleConversionInterval()
} }

Loading…
Cancel
Save