mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Fix networkState in chain id
This commit is contained in:
parent
dbc48c3992
commit
ae7c296669
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user