aboutsummaryrefslogtreecommitdiffstats
path: root/old-ui/app/components
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-04-13 05:17:36 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-04-24 01:18:05 +0800
commit9e41f58af2f236389f11bd1d401da73c0d709b2d (patch)
treecf3cb4dbc49e4ac9fa4a5d8c4d08c32e9a6e8052 /old-ui/app/components
parent74c419f9b65841c2966d1fe3b7414bf11e09e0d8 (diff)
downloadtangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.gz
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.tar.zst
tangerine-wallet-browser-9e41f58af2f236389f11bd1d401da73c0d709b2d.zip
Clean up network config
Diffstat (limited to 'old-ui/app/components')
-rw-r--r--old-ui/app/components/buy-button-subview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/old-ui/app/components/buy-button-subview.js b/old-ui/app/components/buy-button-subview.js
index 56d173839..8bb73ae3e 100644
--- a/old-ui/app/components/buy-button-subview.js
+++ b/old-ui/app/components/buy-button-subview.js
@@ -8,7 +8,7 @@ const ShapeshiftForm = require('./shapeshift-form')
const Loading = require('./loading')
const AccountPanel = require('./account-panel')
const RadioList = require('./custom-radio-list')
-const networkNames = require('../../../app/scripts/config.js').networkNames
+const { getNetworkDisplayName } = require('../../../app/scripts/controllers/network/util')
module.exports = connect(mapStateToProps)(BuyButtonSubview)
@@ -142,7 +142,7 @@ BuyButtonSubview.prototype.primarySubview = function () {
case '3':
case '4':
case '42':
- const networkName = networkNames[network]
+ const networkName = getNetworkDisplayName(network)
const label = `${networkName} Test Faucet`
return (
h('div.flex-column', {