aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/network.js
diff options
context:
space:
mode:
authorDan Finlay <somniac@me.com>2016-07-30 04:08:14 +0800
committerGitHub <noreply@github.com>2016-07-30 04:08:14 +0800
commit212f9cf9452911d70643bbc18f4896d1c7442763 (patch)
treeff16ad39baa8626dabc8a0624aae1b1734edf271 /ui/app/components/network.js
parent591fe3f9be46ee53a7e9ad841347fee87aae7e50 (diff)
parentc7691b7e64597b873da706d842e360f3e2ec8347 (diff)
downloadtangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.tar
tangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.tar.gz
tangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.tar.bz2
tangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.tar.lz
tangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.tar.xz
tangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.tar.zst
tangerine-wallet-browser-212f9cf9452911d70643bbc18f4896d1c7442763.zip
Merge pull request #506 from MetaMask/FixNetworkReference
Fix network name reference
Diffstat (limited to 'ui/app/components/network.js')
-rw-r--r--ui/app/components/network.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js
index 22b11aa6c..95901fe70 100644
--- a/ui/app/components/network.js
+++ b/ui/app/components/network.js
@@ -13,7 +13,12 @@ function Network () {
Network.prototype.render = function () {
const props = this.props
const networkNumber = props.network
- const providerName = props.provider.type
+ let providerName
+ try {
+ providerName = props.provider.type
+ } catch (e) {
+ providerName = null
+ }
let iconName, hoverText
if (networkNumber === 'loading') {