-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Single chain config doesn't work #342
Comments
Sorry about this one. We have an incoming patch on it's way. See PR: #341 |
@uvizhe if you need a temporary fix while you wait, you can disable this Switch Networks popup by setting Example: <ConnectKitProvider options={{
enforceSupportedChains: false
}}> |
Oh, sorry for a duplicate, I didn't notice a prior issue. |
This fix is now available in ConnectKit |
When I configure wagmi with a single chain, e.g.,
goerli
I get the following modal when I connect my wallet:I believe this is due to an incorrect condition in this code:
connectkit/packages/connectkit/src/components/ConnectKit.tsx
Line 208 in 1ccc9f1
I guess it have to be this instead (and I tested it):
Boolean(chain && !chains.some((x) => x.id === chain?.id))
The text was updated successfully, but these errors were encountered: