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

Unable to reconnect to bridge after disconnecting #125

Open
MajicGit opened this issue Apr 3, 2024 · 1 comment
Open

Unable to reconnect to bridge after disconnecting #125

MajicGit opened this issue Apr 3, 2024 · 1 comment

Comments

@MajicGit
Copy link

MajicGit commented Apr 3, 2024

After a wallet that was previously connected to the bridge disconnects (both in the wallet and on the bridge), the "Available Wallets" Popup shows 0 available wallets, despite the previously connected one being available and unlocked.
Image

Restarting browser/site or trying different browser Plug-Ins doesn't work, although fully clearing the site data does.
(Manually deleting Local Storage -> onboard.js:last_connected_wallet also does the trick which was set to [] after the disconnect)

Reproduced on Desktop with Rabby extension and in Metamask mobile app. No method for properly clearing the browser data so a reconnection works was found with Metamask mobile app though.

@MajicGit
Copy link
Author

MajicGit commented Apr 3, 2024

I believe a patch to this would be to change

const wallets = previouslyConnected

to

const wallets = (previouslyConnected && previouslyConnected.length > 0)

But I was unable to spin up a test instance so wiill hold off creating an untested PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant