mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Fix duplicate provider menu item bug
This commit is contained in:
parent
518ff399fb
commit
a462fc82e0
@ -501,12 +501,7 @@ App.prototype.renderCustomOption = function (rpcTarget) {
|
|||||||
return null
|
return null
|
||||||
|
|
||||||
case 'http://localhost:8545':
|
case 'http://localhost:8545':
|
||||||
return h(DropMenuItem, {
|
return null
|
||||||
label: 'Custom RPC',
|
|
||||||
closeMenu: () => this.setState({ isNetworkMenuOpen: false }),
|
|
||||||
action: () => this.props.dispatch(actions.showConfigPage()),
|
|
||||||
icon: h('i.fa.fa-question-circle.fa-lg'),
|
|
||||||
})
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return h(DropMenuItem, {
|
return h(DropMenuItem, {
|
||||||
|
Loading…
Reference in New Issue
Block a user