Fix undefined provider menu item

feature/default_network_editable
Dan Finlay 8 years ago
parent 822face7a3
commit 1e46d858e9
  1. 7
      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':

Loading…
Cancel
Save