From 5798a9e5f138924f5a790e0158f32a3fe0bfa853 Mon Sep 17 00:00:00 2001 From: Bruno Barbieri Date: Fri, 22 Nov 2019 17:25:44 -0500 Subject: [PATCH] Fix chainId for non standard networks (#7502) --- app/scripts/lib/select-chain-id.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/scripts/lib/select-chain-id.js b/app/scripts/lib/select-chain-id.js index 3171c9840..d94b35898 100644 --- a/app/scripts/lib/select-chain-id.js +++ b/app/scripts/lib/select-chain-id.js @@ -15,8 +15,8 @@ const standardNetworkId = { } function selectChainId (metamaskState) { - const { network, provider: { chaindId } } = metamaskState - return standardNetworkId[network] || `0x${parseInt(chaindId, 10).toString(16)}` + const { network, provider: { chainId } } = metamaskState + return standardNetworkId[network] || `0x${parseInt(chainId, 10).toString(16)}` } module.exports = selectChainId