mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix reference in drop menu item
This commit is contained in:
parent
8a4d8eca64
commit
c7691b7e64
@ -34,14 +34,15 @@ DropMenuItem.prototype.render = function () {
|
|||||||
DropMenuItem.prototype.activeNetworkRender = function () {
|
DropMenuItem.prototype.activeNetworkRender = function () {
|
||||||
let activeNetwork = this.props.activeNetworkRender
|
let activeNetwork = this.props.activeNetworkRender
|
||||||
let { provider } = this.props
|
let { provider } = this.props
|
||||||
|
let providerType = provider ? provider.type : null
|
||||||
if (activeNetwork === undefined) return
|
if (activeNetwork === undefined) return
|
||||||
|
|
||||||
switch (this.props.label) {
|
switch (this.props.label) {
|
||||||
case 'Main Ethereum Network':
|
case 'Main Ethereum Network':
|
||||||
if (provider.type === 'mainnet') return h('.check', '✓')
|
if (providerType === 'mainnet') return h('.check', '✓')
|
||||||
break
|
break
|
||||||
case 'Ethereum Classic Network':
|
case 'Ethereum Classic Network':
|
||||||
if (provider.type === 'classic') return h('.check', '✓')
|
if (providerType === 'classic') return h('.check', '✓')
|
||||||
break
|
break
|
||||||
case 'Morden Test Network':
|
case 'Morden Test Network':
|
||||||
if (activeNetwork === '2') return h('.check', '✓')
|
if (activeNetwork === '2') return h('.check', '✓')
|
||||||
|
Loading…
Reference in New Issue
Block a user