diff options
Diffstat (limited to 'ui')
-rw-r--r-- | ui/app/app.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index f9694214a..94e8adc34 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -258,7 +258,7 @@ App.prototype.renderNetworkDropdown = function () { activeNetworkRender: props.provider.rpcTarget, }), - this.renderCustomOption(props.provider.rpcTarget), + this.renderCustomOption(props.provider), h(DropMenuItem, { label: 'Custom RPC', @@ -480,7 +480,10 @@ App.prototype.toggleMetamaskActive = function () { } } -App.prototype.renderCustomOption = function (rpcTarget) { +App.prototype.renderCustomOption = function (provider) { + const { rpcTarget, type } = provider + if (type !== 'rpc') return null + switch (rpcTarget) { case 'http://localhost:8545': |