From 6ae2400ef2fc6e6c5096cc71b3fcf422ccc5e8b2 Mon Sep 17 00:00:00 2001 From: Dan Finlay Date: Mon, 21 Nov 2016 11:45:31 -0800 Subject: Fix custom provider menu item The Custom RPC menu item in the provider menu would not appear when Localhost:8545 was selected. --- ui/app/app.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ui/app/app.js') diff --git a/ui/app/app.js b/ui/app/app.js index 977392c57..ba0a57e02 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -250,6 +250,14 @@ App.prototype.renderNetworkDropdown = function () { }), this.renderCustomOption(props.provider.rpcTarget), + + h(DropMenuItem, { + label: 'Custom RPC', + closeMenu: () => this.setState({ isNetworkMenuOpen: false }), + action: () => this.props.dispatch(actions.showConfigPage()), + icon: h('i.fa.fa-question-circle.fa-lg'), + }), + ]) } @@ -465,13 +473,6 @@ App.prototype.toggleMetamaskActive = function () { App.prototype.renderCustomOption = function (rpcTarget) { switch (rpcTarget) { - case undefined: - return h(DropMenuItem, { - label: 'Custom RPC', - closeMenu: () => this.setState({ isNetworkMenuOpen: false }), - action: () => this.props.dispatch(actions.showConfigPage()), - icon: h('i.fa.fa-question-circle.fa-lg'), - }) case 'http://localhost:8545': return null -- cgit