Skip to content

Commit

Permalink
fix: setChainId cause a build error (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
omridan159 authored Nov 2, 2023
1 parent 903223c commit b4cf813
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk-react/src/MetaMaskProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ const MetaMaskProviderClient = ({
setConnected(activeProvider.isConnected());
setAccount(activeProvider.selectedAddress || undefined);
setProvider(activeProvider);
setChainId(activeProvider.chainId);
setChainId(activeProvider.chainId || undefined);

activeProvider.on('_initialized', onInitialized);
activeProvider.on('connecting', onConnecting);
Expand Down

0 comments on commit b4cf813

Please sign in to comment.