snapshot-labs / sx-monorepo

Snapshot X monorepo
https://docs.snapshotx.xyz
MIT License
11 stars 10 forks source link

fix: reset the account button loading state on wallet change cancel #452

Closed wa0x6e closed 1 day ago

wa0x6e commented 5 days ago

Summary

Closes: #450

This PR fix the issue where the Account button on the page top right is stuck on the loading state after cancelling a wallet change action.

How to test

  1. Connect to your wallet
  2. Open the account modal, then click on the "Change wallet"
  3. Choose WalletConnect or starknet
  4. When the walletConnect modal open, close it
  5. The Account button should not have loading state

This fix does not work on Coinbase wallet, as its modal is buggy, and can not be closed