You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When unregistering a wallet, it seems to remove all wallets except for the one I tried to unregister in useStandardWalletAdapters. I think the filter is filtering for only the wallet I'm trying to unregister instead filtering for all the wallets but the one I'm trying to unregister.
alex-fung
changed the title
Unregister listener in useStandardWalletAdapters bug?
Unregister listener in useStandardWalletAdapters doing the opposite filtering
Mar 20, 2024
When unregistering a wallet, it seems to remove all wallets except for the one I tried to unregister in
useStandardWalletAdapters
. I think the filter is filtering for only the wallet I'm trying to unregister instead filtering for all the wallets but the one I'm trying to unregister.In particular at
wallet-standard/packages/wallet-adapter/react/src/useStandardWalletAdapters.ts
Line 20 in 2c354cf
should it be
wallets.some((wallet) => wallet !== standardAdapter.wallet)
?(Aware that this isn't supposed to be used by dApps necessarily, but wanted to use it for some in-team testing purposes)
The text was updated successfully, but these errors were encountered: