diff options
author | kumavis <kumavis@users.noreply.github.com> | 2017-03-15 08:24:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-15 08:24:55 +0800 |
commit | 570cc891b5386dc04462737de4df6f2adf5059c9 (patch) | |
tree | 0b82e66942ade02e78012414aeb9576327355387 /ui/app/config.js | |
parent | 2a68c89ba7c5f168083beee77161adeb863d82c9 (diff) | |
parent | 311b80adf35ba8b419bff15f83a6e8893b746b39 (diff) | |
download | tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar.gz tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar.bz2 tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar.lz tangerine-wallet-browser-570cc891b5386dc04462737de4df6f2adf5059c9.tar.xz 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/config.js')
-rw-r--r-- | ui/app/config.js | 12 |
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}`) }) |