diff options
author | Dan Finlay <542863+danfinlay@users.noreply.github.com> | 2018-04-24 06:49:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 06:49:17 +0800 |
commit | 4289f813e9f90a38b98f1d067d4e7556438641c8 (patch) | |
tree | 8bf154eedeb9c66ca2377aca010d3b80453a22dc /ui/app/components/buy-button-subview.js | |
parent | f1c0d8ad6e5dd99dae723b9bc0ca80bed27e8bc1 (diff) | |
parent | 9e41f58af2f236389f11bd1d401da73c0d709b2d (diff) | |
download | tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.gz tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.bz2 tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.lz tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.xz tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.tar.zst tangerine-wallet-browser-4289f813e9f90a38b98f1d067d4e7556438641c8.zip |
Merge pull request #3968 from MetaMask/gh-3653
Clean up network config
Diffstat (limited to 'ui/app/components/buy-button-subview.js')
-rw-r--r-- | ui/app/components/buy-button-subview.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js index 9ac565cf4..fda7c3e17 100644 --- a/ui/app/components/buy-button-subview.js +++ b/ui/app/components/buy-button-subview.js @@ -9,7 +9,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') BuyButtonSubview.contextTypes = { t: PropTypes.func, @@ -148,7 +148,7 @@ BuyButtonSubview.prototype.primarySubview = function () { case '3': case '4': case '42': - const networkName = networkNames[network] + const networkName = getNetworkDisplayName(network) const label = `${networkName} ${this.context.t('testFaucet')}` return ( h('div.flex-column', { |