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

Did not previously call functions before!

This commit is contained in:
Kevin Serrano 2016-08-09 16:49:15 -07:00
parent 637d3978b7
commit cb0c1f25ba
2 changed files with 6 additions and 3 deletions

View File

@ -252,9 +252,9 @@ module.exports = class MetamaskController {
this.configManager.updateConversionRate() this.configManager.updateConversionRate()
this.scheduleConversionInterval() this.scheduleConversionInterval()
const data = { const data = {
conversionRate: this.configManager.getConversionRate, conversionRate: this.configManager.getConversionRate(),
currentFiat: this.configManager.getCurrentFiat, currentFiat: this.configManager.getCurrentFiat(),
conversionDate: this.configManager.getConversionDate, conversionDate: this.configManager.getConversionDate(),
} }
cb(data) cb(data)
} catch (e) { } catch (e) {

View File

@ -223,6 +223,9 @@ function setCurrentFiat (fiat) {
dispatch(this.showLoadingIndication()) dispatch(this.showLoadingIndication())
_accountManager.setCurrentFiat(fiat, (data, err) => { _accountManager.setCurrentFiat(fiat, (data, err) => {
dispatch(this.hideLoadingIndication()) dispatch(this.hideLoadingIndication())
console.log("NEW THINGS")
console.log("==========")
console.log(data.currentFiat, data.conversionRate, data.conversionDate)
dispatch({ dispatch({
type: this.SET_CURRENT_FIAT, type: this.SET_CURRENT_FIAT,
value: { value: {