mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +01:00
Fix default value. Add loading indication for async.
This commit is contained in:
parent
8acb3e6007
commit
637d3978b7
@ -21,7 +21,7 @@ module.exports = class MetamaskController {
|
||||
this.idStore.setStore(this.ethStore)
|
||||
this.messageManager = messageManager
|
||||
this.publicConfigStore = this.initPublicConfigStore
|
||||
this.configManager.setCurrentFiat('usd')
|
||||
this.configManager.setCurrentFiat('USD')
|
||||
this.configManager.updateConversionRate()
|
||||
this.scheduleConversionInterval()
|
||||
}
|
||||
|
@ -216,9 +216,13 @@ function revealAccount () {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
function setCurrentFiat (fiat) {
|
||||
return (dispatch) => {
|
||||
dispatch(this.showLoadingIndication())
|
||||
_accountManager.setCurrentFiat(fiat, (data, err) => {
|
||||
dispatch(this.hideLoadingIndication())
|
||||
dispatch({
|
||||
type: this.SET_CURRENT_FIAT,
|
||||
value: {
|
||||
|
@ -6,6 +6,7 @@ const formatBalance = require('../util').formatBalance
|
||||
const generateBalanceObject = require('../util').generateBalanceObject
|
||||
const Tooltip = require('./tooltip.js')
|
||||
|
||||
module.exports = connect(mapStateToProps)(EthBalanceComponent)
|
||||
|
||||
function mapStateToProps (state) {
|
||||
return {
|
||||
@ -15,9 +16,6 @@ function mapStateToProps (state) {
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = connect(mapStateToProps)(EthBalanceComponent)
|
||||
|
||||
|
||||
inherits(EthBalanceComponent, Component)
|
||||
function EthBalanceComponent () {
|
||||
Component.call(this)
|
||||
|
Loading…
Reference in New Issue
Block a user