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

Detect Installed Wallets #925

Closed
99sudarshan opened this issue Mar 9, 2024 · 1 comment
Closed

Detect Installed Wallets #925

99sudarshan opened this issue Mar 9, 2024 · 1 comment
Labels
question Add this to close an issue with instructions on how to repost as a question on Stack Exchange

Comments

@99sudarshan
Copy link

In next 13 couldn't able to get installed wallets from wallet adapter, if using previous versions it throws an error from node_modules

  const { wallets, select } = useWallet();

const [listedWallets, collapsedWallets] = useMemo(() => {
        const installed: Wallet[] = [];
        const notInstalled: Wallet[] = [];

        for (const wallet of wallets) {
            if (wallet.readyState === WalletReadyState.Installed) {
                installed.push(wallet);
            } else {
                notInstalled.push(wallet);
            }
        }

        return installed.length ? [installed, notInstalled] : [notInstalled, []];
    }, [wallets]);

how can i get without error response using this in latest next app?

@jordaaash jordaaash added the question Add this to close an issue with instructions on how to repost as a question on Stack Exchange label Mar 12, 2024
Copy link
Contributor

Hi @99sudarshan,

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Wallet Adapter itself.

Questions like yours deserve a purpose-built Q & A forum. Unless there exists evidence that this is a bug with Wallet Adapter itself, please post your question to the Solana Stack Exchange using this link:

https://solana.stackexchange.com/questions/ask


This automated message is a result of having added the ‘question’ tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Add this to close an issue with instructions on how to repost as a question on Stack Exchange
Projects
None yet
Development

No branches or pull requests

2 participants