diff --git a/.changeset/tangy-otters-invite.md b/.changeset/tangy-otters-invite.md new file mode 100644 index 00000000000..a2d5a31a4ba --- /dev/null +++ b/.changeset/tangy-otters-invite.md @@ -0,0 +1,5 @@ +--- +"thirdweb": patch +--- + +Fix inapp wallets showing up in all wallets list diff --git a/packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx b/packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx index 0d9c91edb64..a5ded327ab5 100644 --- a/packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx +++ b/packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx @@ -100,6 +100,10 @@ export function AllWalletsList( .filter( (info) => !externalWallets.find((wallet) => wallet.id === info.id), ) + .filter( + (info) => + info.id !== "inApp" && info.id !== "embedded" && info.id !== "smart", + ) .filter((info) => info.hasMobileSupport); const fuse = new Fuse(filteredWallets, { diff --git a/packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx b/packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx index 22c8203c331..c8a32924ea5 100644 --- a/packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx +++ b/packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx @@ -39,9 +39,16 @@ function AllWalletsUI(props: { const setSelectionData = useSetSelectionData(); const walletList = useMemo(() => { - return walletInfos.filter((wallet) => { - return props.specifiedWallets.findIndex((x) => x.id === wallet.id) === -1; - }); + return walletInfos + .filter((wallet) => { + return ( + props.specifiedWallets.findIndex((x) => x.id === wallet.id) === -1 + ); + }) + .filter( + (info) => + info.id !== "inApp" && info.id !== "embedded" && info.id !== "smart", + ); }, [props.specifiedWallets]); const fuseInstance = useMemo(() => {