aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-07-30 03:19:15 +0800
committerDan Finlay <dan@danfinlay.com>2016-07-30 03:19:15 +0800
commit8a4d8eca6463d7dd846515fdd62732a419a07344 (patch)
treeeb22b57f49fbb9cd360fddb1193f57c4278c0a40
parent591fe3f9be46ee53a7e9ad841347fee87aae7e50 (diff)
downloadtangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.tar
tangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.tar.gz
tangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.tar.bz2
tangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.tar.lz
tangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.tar.xz
tangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.tar.zst
tangerine-wallet-browser-8a4d8eca6463d7dd846515fdd62732a419a07344.zip
Fix network name reference
When adding the classic network to the menu, I left a reference to a property that is not always existent, so we needed a fallback for it.
-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') {