I'm using Wagmi.sh. When I use useSwitchNetwork to switch Metamask to my local Hardhat node, the dialog pops up asking for confirmation, when I confirm it nothing happens - no error code (in the try..catch block or in the dialog) and Metamask doesn't switch to Hardhat. I can switch to Hardhat manually, just not via useSwitchNetwork. It works when switching to mainnets, e.g. Polygon, but not my local Hardhat. I changed my Hardhat chain ID to 1337 (and have this chain ID specified in Metamask), but don't see how that can be the problem.
Does anyone have any suggestions?