1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fix network dropdown custom rpc link

This commit is contained in:
Erik Marks 2020-10-28 15:38:03 -07:00
parent c3df1aab8d
commit 8d3091040c

View File

@ -7,7 +7,7 @@ import * as actions from '../../../store/actions'
import {
openAlert as displayInvalidCustomNetworkAlert,
} from '../../../ducks/alerts/invalid-custom-network'
import { NETWORKS_ROUTE } from '../../../helpers/constants/routes'
import { NETWORKS_FORM_ROUTE } from '../../../helpers/constants/routes'
import { isPrefixedFormattedHexString } from '../../../../../app/scripts/lib/util'
import { Dropdown, DropdownMenuItem } from './components/dropdown'
import NetworkDropdownIcon from './components/network-dropdown-icon'
@ -338,7 +338,7 @@ class NetworkDropdown extends Component {
closeMenu={() => this.props.hideNetworkDropdown()}
onClick={() => {
setNetworksTabAddMode(true)
this.props.history.push(NETWORKS_ROUTE)
this.props.history.push(NETWORKS_FORM_ROUTE)
}}
style={dropdownMenuItemStyle}
>