|
|
@ -71,7 +71,7 @@ var actions = { |
|
|
|
SHOW_CONF_TX_PAGE: 'SHOW_CONF_TX_PAGE', |
|
|
|
SHOW_CONF_TX_PAGE: 'SHOW_CONF_TX_PAGE', |
|
|
|
SHOW_CONF_MSG_PAGE: 'SHOW_CONF_MSG_PAGE', |
|
|
|
SHOW_CONF_MSG_PAGE: 'SHOW_CONF_MSG_PAGE', |
|
|
|
SET_CURRENT_FIAT: 'SET_CURRENT_FIAT', |
|
|
|
SET_CURRENT_FIAT: 'SET_CURRENT_FIAT', |
|
|
|
setCurrentFiat: setCurrentFiat, |
|
|
|
setCurrentCurrency: setCurrentCurrency, |
|
|
|
// account detail screen
|
|
|
|
// account detail screen
|
|
|
|
SHOW_SEND_PAGE: 'SHOW_SEND_PAGE', |
|
|
|
SHOW_SEND_PAGE: 'SHOW_SEND_PAGE', |
|
|
|
showSendPage: showSendPage, |
|
|
|
showSendPage: showSendPage, |
|
|
@ -328,10 +328,10 @@ function showInfoPage () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function setCurrentFiat (currencyCode) { |
|
|
|
function setCurrentCurrency (currencyCode) { |
|
|
|
return (dispatch) => { |
|
|
|
return (dispatch) => { |
|
|
|
dispatch(this.showLoadingIndication()) |
|
|
|
dispatch(this.showLoadingIndication()) |
|
|
|
log.debug(`background.setCurrentFiat`) |
|
|
|
log.debug(`background.setCurrentCurrency`) |
|
|
|
background.setCurrentCurrency(currencyCode, (err, data) => { |
|
|
|
background.setCurrentCurrency(currencyCode, (err, data) => { |
|
|
|
dispatch(this.hideLoadingIndication()) |
|
|
|
dispatch(this.hideLoadingIndication()) |
|
|
|
if (err) { |
|
|
|
if (err) { |
|
|
@ -341,7 +341,7 @@ function setCurrentFiat (currencyCode) { |
|
|
|
dispatch({ |
|
|
|
dispatch({ |
|
|
|
type: this.SET_CURRENT_FIAT, |
|
|
|
type: this.SET_CURRENT_FIAT, |
|
|
|
value: { |
|
|
|
value: { |
|
|
|
currentFiat: data.currentFiat, |
|
|
|
currentCurrency: data.currentCurrency, |
|
|
|
conversionRate: data.conversionRate, |
|
|
|
conversionRate: data.conversionRate, |
|
|
|
conversionDate: data.conversionDate, |
|
|
|
conversionDate: data.conversionDate, |
|
|
|
}, |
|
|
|
}, |
|
|
|