Detect Installed Wallets
99sudarshan opened this issue · 1 comments
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?
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.