aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/config.js
diff options
context:
space:
mode:
authorKevin Serrano <kevin.serrano@consensys.net>2017-09-15 00:14:57 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-15 00:14:57 +0800
commit456ceefcf7967423ea66e81d2108ffcb0e144082 (patch)
tree47a13b211a5d9602f31394d5f70cdebe4f0b4ad0 /ui/app/config.js
parentcb8856597cb650e282e7209f43547a5f9328de28 (diff)
downloadtangerine-wallet-browser-456ceefcf7967423ea66e81d2108ffcb0e144082.tar.gz
tangerine-wallet-browser-456ceefcf7967423ea66e81d2108ffcb0e144082.tar.zst
tangerine-wallet-browser-456ceefcf7967423ea66e81d2108ffcb0e144082.zip
Modify conversion to new api.
Diffstat (limited to 'ui/app/config.js')
-rw-r--r--ui/app/config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/config.js b/ui/app/config.js
index 8eaaa1384..cc74b29db 100644
--- a/ui/app/config.js
+++ b/ui/app/config.js
@@ -3,7 +3,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
const actions = require('./actions')
-const infuraCurrencies = require('./infura-conversion.json').symbols
+const infuraCurrencies = require('./infura-conversion.json').objects
const validUrl = require('valid-url')
const exportAsFile = require('./util').exportAsFile
@@ -168,7 +168,7 @@ function currentConversionInformation (metamaskState, state) {
},
defaultValue: currentCurrency,
}, infuraCurrencies.map((currency) => {
- return h('option', {key: currency, value: currency}, currency)
+ return h('option', {key: currency.symbol, value: currency.symbol}, `${currency.quote.code.toUpperCase()} - ${currency.quote.name}`)
})
),
])