aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/config.js
diff options
context:
space:
mode:
authorChi Kei Chan <chikeichan@gmail.com>2017-09-28 13:54:21 +0800
committerChi Kei Chan <chikeichan@gmail.com>2017-09-28 13:54:21 +0800
commite711a4193f34b532c78526d68a32baff93eb061d (patch)
treefe76102102c875ee6eaaee8cb57829899936c519 /ui/app/config.js
parentdeee689426f0b6236093128b47be81faf56d6b75 (diff)
parent5a1d50cd431819874f634679a1ea47fa64f9fbb4 (diff)
downloadtangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.tar
tangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.tar.gz
tangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.tar.bz2
tangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.tar.lz
tangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.tar.xz
tangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.tar.zst
tangerine-wallet-browser-e711a4193f34b532c78526d68a32baff93eb061d.zip
Merge branch 'mmn' into merge
Diffstat (limited to 'ui/app/config.js')
-rw-r--r--ui/app/config.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/config.js b/ui/app/config.js
index d64088ccb..0fe232c07 100644
--- a/ui/app/config.js
+++ b/ui/app/config.js
@@ -3,7 +3,9 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
const actions = require('./actions')
-const currencies = require('./conversion.json').rows
+const infuraCurrencies = require('./infura-conversion.json').objects.sort((a, b) => {
+ return a.quote.name.toLocaleLowerCase().localeCompare(b.quote.name.toLocaleLowerCase())
+ })
const validUrl = require('valid-url')
const exportAsFile = require('./util').exportAsFile
@@ -167,8 +169,8 @@ function currentConversionInformation (metamaskState, state) {
state.dispatch(actions.setCurrentCurrency(newCurrency))
},
defaultValue: currentCurrency,
- }, currencies.map((currency) => {
- return h('option', {key: currency.code, value: currency.code}, `${currency.code} - ${currency.name}`)
+ }, infuraCurrencies.map((currency) => {
+ return h('option', {key: currency.quote.code, value: currency.quote.code}, `${currency.quote.code.toUpperCase()} - ${currency.quote.name}`)
})
),
])