aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/deposit-ether-modal.js
diff options
context:
space:
mode:
authorDan Finlay <542863+danfinlay@users.noreply.github.com>2018-04-24 06:49:17 +0800
committerGitHub <noreply@github.com>2018-04-24 06:49:17 +0800
commit4289f813e9f90a38b98f1d067d4e7556438641c8 (patch)
tree8bf154eedeb9c66ca2377aca010d3b80453a22dc /ui/app/components/modals/deposit-ether-modal.js
parentf1c0d8ad6e5dd99dae723b9bc0ca80bed27e8bc1 (diff)
parent9e41f58af2f236389f11bd1d401da73c0d709b2d (diff)
downloadtangerine-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/modals/deposit-ether-modal.js')
-rw-r--r--ui/app/components/modals/deposit-ether-modal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/modals/deposit-ether-modal.js b/ui/app/components/modals/deposit-ether-modal.js
index 0dc611f50..ad5f9b695 100644
--- a/ui/app/components/modals/deposit-ether-modal.js
+++ b/ui/app/components/modals/deposit-ether-modal.js
@@ -4,7 +4,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const connect = require('react-redux').connect
const actions = require('../../actions')
-const networkNames = require('../../../../app/scripts/config.js').networkNames
+const { getNetworkDisplayName } = require('../../../../app/scripts/controllers/network/util')
const ShapeshiftForm = require('../shapeshift-form')
let DIRECT_DEPOSIT_ROW_TITLE
@@ -122,7 +122,7 @@ DepositEtherModal.prototype.render = function () {
const { buyingWithShapeshift } = this.state
const isTestNetwork = ['3', '4', '42'].find(n => n === network)
- const networkName = networkNames[network]
+ const networkName = getNetworkDisplayName(network)
return h('div.page-container.page-container--full-width.page-container--full-height', {}, [