|
|
@ -212,10 +212,14 @@ function revealAccount () { |
|
|
|
function setCurrentFiat (fiat) { |
|
|
|
function setCurrentFiat (fiat) { |
|
|
|
return (dispatch) => { |
|
|
|
return (dispatch) => { |
|
|
|
dispatch(this.showLoadingIndication()) |
|
|
|
dispatch(this.showLoadingIndication()) |
|
|
|
_accountManager.setCurrentFiat(fiat, (err) => { |
|
|
|
_accountManager.setCurrentFiat(fiat, (data, err) => { |
|
|
|
dispatch(this.hideLoadingIndication()) |
|
|
|
dispatch(this.hideLoadingIndication()) |
|
|
|
dispatch({ |
|
|
|
dispatch({ |
|
|
|
type: this.SET_CURRENT_FIAT, |
|
|
|
type: this.SET_CURRENT_FIAT, |
|
|
|
|
|
|
|
value: { |
|
|
|
|
|
|
|
currentFiat: data.currentFiat, |
|
|
|
|
|
|
|
conversionRate: data.conversionRate, |
|
|
|
|
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|