Skip to content
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

[bug] Modal not responding to switching network after choosing unsupported network in a wallet #3264

Closed
vanyasav opened this issue Nov 19, 2024 · 4 comments
Labels
bug Something isn't working needs review

Comments

@vanyasav
Copy link

vanyasav commented Nov 19, 2024

Link to minimal reproducible example

https://appkit-lab.reown.com/library/wagmi/

Summary

  1. Connect a wallet
  2. Switch network in the wallet
  3. Modal appears on a screen
  4. Clicking on the first item in the list has no response
Screencast.from.19-11-2024.10.25.29.webm

List of related npm package versions

Appkit lab

@vanyasav vanyasav added bug Something isn't working needs review labels Nov 19, 2024
@vanyasav
Copy link
Author

related to #3129

@Hamedblue1381
Copy link

When I connect to a wallet like Metamask browser extension (which will let you choose your networks) and I choose unsupported network, the "Switch Network" modal appears and clicking it does nothing

@VGeorgiev1
Copy link

@vanyasav @Hamedblue1381
I have narrowed it down to this:

Its not always the first network in the list that doesn't work but rather the last supported network that was selected. If you are for example are connected to Sepolia -> change to unsupported then the Sepolia button wont do anything.

I think it has to do something with the active_caip_network_id localStorage item that appkit uses, and it not being updated correctly.

@svenvoskamp
Copy link
Contributor

Thanks for reporting. This has been resolved in our latest release 1.5.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs review
Projects
None yet
Development

No branches or pull requests

4 participants