aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/config.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2017-03-15 08:52:03 +0800
committerGitHub <noreply@github.com>2017-03-15 08:52:03 +0800
commita186e40d179d230fc1e81f7f507a5232d23ad462 (patch)
tree91d9cbb8baa26efa462a86e9ecda460792f90996 /ui/app/config.js
parentfcee7723e99c13b3fddcb97853dfdd771b42de14 (diff)
parent570cc891b5386dc04462737de4df6f2adf5059c9 (diff)
downloadtangerine-wallet-browser-a186e40d179d230fc1e81f7f507a5232d23ad462.tar.gz
tangerine-wallet-browser-a186e40d179d230fc1e81f7f507a5232d23ad462.tar.zst
tangerine-wallet-browser-a186e40d179d230fc1e81f7f507a5232d23ad462.zip
Merge branch 'master' into i1165-predictive
Diffstat (limited to 'ui/app/config.js')
-rw-r--r--ui/app/config.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/ui/app/config.js b/ui/app/config.js
index 00a4cba88..3f0507f48 100644
--- a/ui/app/config.js
+++ b/ui/app/config.js
@@ -125,19 +125,19 @@ function rpcValidation (newRpc, state) {
}
function currentConversionInformation (metamaskState, state) {
- var currentFiat = metamaskState.currentFiat
+ var currentCurrency = metamaskState.currentCurrency
var conversionDate = metamaskState.conversionDate
return h('div', [
h('span', {style: { fontWeight: 'bold', paddingRight: '10px'}}, 'Current Conversion'),
h('span', {style: { fontWeight: 'bold', paddingRight: '10px', fontSize: '13px'}}, `Updated ${Date(conversionDate)}`),
- h('select#currentFiat', {
+ h('select#currentCurrency', {
onChange (event) {
event.preventDefault()
- var element = document.getElementById('currentFiat')
- var newFiat = element.value
- state.dispatch(actions.setCurrentFiat(newFiat))
+ var element = document.getElementById('currentCurrency')
+ var newCurrency = element.value
+ state.dispatch(actions.setCurrentCurrency(newCurrency))
},
- defaultValue: currentFiat,
+ defaultValue: currentCurrency,
}, currencies.map((currency) => {
return h('option', {key: currency.code, value: currency.code}, `${currency.code} - ${currency.name}`)
})