Fix issue #688 where fiat conversion does not persist when switching networks
This commit is contained in:
parent
3db131de86
commit
0a8a25c818
|
@ -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() ? this.configManager.getCurrentFiat() : 'USD'
|
||||||
|
this.configManager.setCurrentFiat(currentFiat)
|
||||||
this.configManager.updateConversionRate()
|
this.configManager.updateConversionRate()
|
||||||
this.scheduleConversionInterval()
|
this.scheduleConversionInterval()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue