Skip to content

Unregister listener in useStandardWalletAdapters doing the opposite filtering #44

@alex-fung

Description

@alex-fung

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

wallets.some((wallet) => wallet === standardAdapter.wallet)

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions