web3-react icon indicating copy to clipboard operation
web3-react copied to clipboard

chainId undefined for xDai

Open jchaselubitz opened this issue 3 years ago • 2 comments

When my wallet (MetaMask) is set to the xDai network (100), active returns false, and chainId returns undefined. Other networks (Polygon, Arbitrum, Kovan, etc.) behave as expected.

This is the hook I am using: const { activate, active, chainId } = useWeb3React<Web3Provider>();

React 17.02 Web3React v6 and v8

jchaselubitz avatar Jan 26 '22 11:01 jchaselubitz

Same issue for me 👍

johanleroch avatar Feb 14 '22 17:02 johanleroch

hm, i can't repro this. can you confirm this issue still exists after adding xDai through https://chainlist.org/ and visiting https://web3-react-mu.vercel.app/?

NoahZinsmeister avatar Feb 24 '22 21:02 NoahZinsmeister