diff options
author | Dan Finlay <dan@danfinlay.com> | 2016-07-30 03:22:39 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2016-07-30 03:22:39 +0800 |
commit | c7691b7e64597b873da706d842e360f3e2ec8347 (patch) | |
tree | ff16ad39baa8626dabc8a0624aae1b1734edf271 /ui | |
parent | 8a4d8eca6463d7dd846515fdd62732a419a07344 (diff) | |
download | tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.tar tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.tar.gz tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.tar.bz2 tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.tar.lz tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.tar.xz tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.tar.zst tangerine-wallet-browser-c7691b7e64597b873da706d842e360f3e2ec8347.zip |
Fix reference in drop menu item
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/components/drop-menu-item.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/app/components/drop-menu-item.js b/ui/app/components/drop-menu-item.js index 8bff3e131..1a0d6cbd5 100644 --- a/ui/app/components/drop-menu-item.js +++ b/ui/app/components/drop-menu-item.js @@ -34,14 +34,15 @@ DropMenuItem.prototype.render = function () { DropMenuItem.prototype.activeNetworkRender = function () { let activeNetwork = this.props.activeNetworkRender let { provider } = this.props + let providerType = provider ? provider.type : null if (activeNetwork === undefined) return switch (this.props.label) { case 'Main Ethereum Network': - if (provider.type === 'mainnet') return h('.check', '✓') + if (providerType === 'mainnet') return h('.check', '✓') break case 'Ethereum Classic Network': - if (provider.type === 'classic') return h('.check', '✓') + if (providerType === 'classic') return h('.check', '✓') break case 'Morden Test Network': if (activeNetwork === '2') return h('.check', '✓') |