aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/actions.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2017-03-15 08:24:55 +0800
committerGitHub <noreply@github.com>2017-03-15 08:24:55 +0800
commit570cc891b5386dc04462737de4df6f2adf5059c9 (patch)
tree0b82e66942ade02e78012414aeb9576327355387 /ui/app/actions.js
parent2a68c89ba7c5f168083beee77161adeb863d82c9 (diff)
parent311b80adf35ba8b419bff15f83a6e8893b746b39 (diff)
downloadtangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar.gz
tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar.zst
tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.zip
Merge pull request #1212 from MetaMask/i1211-currencyretention
Fix currency settings retention
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r--ui/app/actions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js
index d4fd7553b..0027a5f67 100644
--- a/ui/app/actions.js
+++ b/ui/app/actions.js
@@ -71,7 +71,7 @@ var actions = {
SHOW_CONF_TX_PAGE: 'SHOW_CONF_TX_PAGE',
SHOW_CONF_MSG_PAGE: 'SHOW_CONF_MSG_PAGE',
SET_CURRENT_FIAT: 'SET_CURRENT_FIAT',
- setCurrentFiat: setCurrentFiat,
+ setCurrentCurrency: setCurrentCurrency,
// account detail screen
SHOW_SEND_PAGE: 'SHOW_SEND_PAGE',
showSendPage: showSendPage,
@@ -328,10 +328,10 @@ function showInfoPage () {
}
}
-function setCurrentFiat (currencyCode) {
+function setCurrentCurrency (currencyCode) {
return (dispatch) => {
dispatch(this.showLoadingIndication())
- log.debug(`background.setCurrentFiat`)
+ log.debug(`background.setCurrentCurrency`)
background.setCurrentCurrency(currencyCode, (err, data) => {
dispatch(this.hideLoadingIndication())
if (err) {
@@ -341,7 +341,7 @@ function setCurrentFiat (currencyCode) {
dispatch({
type: this.SET_CURRENT_FIAT,
value: {
- currentFiat: data.currentFiat,
+ currentCurrency: data.currentCurrency,
conversionRate: data.conversionRate,
conversionDate: data.conversionDate,
},