1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 19:26:13 +02:00

Fix networkState in chain id

This commit is contained in:
Thomas Huang 2017-06-12 17:44:11 -07:00
parent dbc48c3992
commit ae7c296669

View File

@ -212,7 +212,7 @@ module.exports = class TransactionController extends EventEmitter {
getChainId () {
const networkState = this.networkStore.getState()
const getChainId = parseInt(networkState.network)
const getChainId = parseInt(networkState)
if (Number.isNaN(getChainId)) {
return 0
} else {