aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app
diff options
context:
space:
mode:
authorRoman Rodov <roman.rodov@iag.com.au>2017-09-08 08:56:43 +0800
committerKevin Serrano <kevin.serrano@consensys.net>2017-09-19 03:00:12 +0800
commit9af52ee1c58db23728d9240f3d5ec472a6adf68f (patch)
tree3f00d73f6a3057e0532f96764b5c66447d40e9dd /ui/app
parentf6f7798828cd7f6325800b96d10a823a3338cdb0 (diff)
downloadtangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.tar
tangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.tar.gz
tangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.tar.bz2
tangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.tar.lz
tangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.tar.xz
tangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.tar.zst
tangerine-wallet-browser-9af52ee1c58db23728d9240f3d5ec472a6adf68f.zip
Another merge conflict resolved.
Diffstat (limited to 'ui/app')
-rw-r--r--ui/app/config.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/config.js b/ui/app/config.js
index 06a1c2899..4b0218692 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 infuraCurrencies = require('./infura-conversion.json').objects
+const infuraCurrencies = require('./infura-conversion.json').sort((a, b) => {
+ return a.name.toLocaleLowerCase().localeCompare(b.name.toLocaleLowerCase())
+ })
const validUrl = require('valid-url')
const exportAsFile = require('./util').exportAsFile
@@ -167,9 +169,7 @@ function currentConversionInformation (metamaskState, state) {
state.dispatch(actions.setCurrentCurrency(newCurrency))
},
defaultValue: currentCurrency,
- }, infuraCurrencies.sort((a, b) => {
- return a.quote.name.toLocaleLowerCase().localeCompare(b.quote.name.toLocaleLowerCase())
- }).map((currency) => {
+ }, infuraCurrencies.map((currency) => {
return h('option', {key: currency.symbol, value: currency.symbol}, `${currency.quote.code.toUpperCase()} - ${currency.quote.name}`)
})
),