Fix chainId for non standard networks (#7502)

feature/default_network_editable
Bruno Barbieri 5 years ago committed by Mark Stacey
parent 4190b397d1
commit 5798a9e5f1
  1. 4
      app/scripts/lib/select-chain-id.js

@ -15,8 +15,8 @@ const standardNetworkId = {
} }
function selectChainId (metamaskState) { function selectChainId (metamaskState) {
const { network, provider: { chaindId } } = metamaskState const { network, provider: { chainId } } = metamaskState
return standardNetworkId[network] || `0x${parseInt(chaindId, 10).toString(16)}` return standardNetworkId[network] || `0x${parseInt(chainId, 10).toString(16)}`
} }
module.exports = selectChainId module.exports = selectChainId

Loading…
Cancel
Save