diff --git a/common/features/config/__snapshots__/sagas.spec.ts.snap b/common/features/config/__snapshots__/sagas.spec.ts.snap index bd0f53b5..5c78d960 100644 --- a/common/features/config/__snapshots__/sagas.spec.ts.snap +++ b/common/features/config/__snapshots__/sagas.spec.ts.snap @@ -12,7 +12,9 @@ Object { } `; -exports[`handleChangeNodeRequested* should select getCustomNodeConfig and match race snapshot 1`] = ` +exports[ + `handleChangeNodeRequested* should select getCustomNodeConfig and match race snapshot 1` +] = ` Object { "@@redux-saga/IO": true, "SELECT": Object { diff --git a/common/features/deterministicWallets/__snapshots__/sagas.spec.ts.snap b/common/features/deterministicWallets/__snapshots__/sagas.spec.ts.snap index 74d459c8..ab5c6333 100644 --- a/common/features/deterministicWallets/__snapshots__/sagas.spec.ts.snap +++ b/common/features/deterministicWallets/__snapshots__/sagas.spec.ts.snap @@ -1,6 +1,8 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`getDeterministicWallets* starting from publicKey & chainCode should match put snapshot 1`] = ` +exports[ + `getDeterministicWallets* starting from publicKey & chainCode should match put snapshot 1` +] = ` Object { "@@redux-saga/IO": true, "PUT": Object { @@ -215,4 +217,4 @@ Object { }, ], } -`; \ No newline at end of file +`; diff --git a/common/features/handleMetaMaskPolling.ts b/common/features/handleMetaMaskPolling.ts index 9c3d12b1..118ec5f7 100644 --- a/common/features/handleMetaMaskPolling.ts +++ b/common/features/handleMetaMaskPolling.ts @@ -37,7 +37,12 @@ export default async function handleMetaMaskPolling(store: Store): Pro const actualChainId = await getActualChainId(); const actualNetwork = configNetworksSelectors.getNetworkByChainId(state, actualChainId); - if (web3Wallet && actualNetwork && (web3Wallet as Web3Wallet).network !== actualNetwork.id) { + if ( + web3Wallet && + (web3Wallet as Web3Wallet).network && + actualNetwork && + (web3Wallet as Web3Wallet).network !== actualNetwork.id + ) { window.location.reload(); return true;