Skip to content

Commit

Permalink
fix: connect wallet chain id
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Dec 23, 2022
1 parent da706b5 commit f342d61
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web3/store/walletSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ export function createWeb3Slice({

const activeWallet = get().activeWallet;

if (activeWallet && activeWallet.chainId) {
if (
typeof txChainID === 'undefined' &&
activeWallet &&
activeWallet.chainId
) {
if (activeWallet.chainId !== chainID) {
chainID = activeWallet.chainId;
}
Expand Down

0 comments on commit f342d61

Please sign in to comment.