Skip to content

Commit d62e997

Browse files
[SDK] Fix inapp wallets showing up in all wallets list (#7586)
1 parent 7d796f5 commit d62e997

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.changeset/tangy-otters-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Fix inapp wallets showing up in all wallets list

packages/thirdweb/src/react/native/ui/connect/ExternalWalletsList.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ export function AllWalletsList(
100100
.filter(
101101
(info) => !externalWallets.find((wallet) => wallet.id === info.id),
102102
)
103+
.filter(
104+
(info) =>
105+
info.id !== "inApp" && info.id !== "embedded" && info.id !== "smart",
106+
)
103107
.filter((info) => info.hasMobileSupport);
104108

105109
const fuse = new Fuse(filteredWallets, {

packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,16 @@ function AllWalletsUI(props: {
3939
const setSelectionData = useSetSelectionData();
4040

4141
const walletList = useMemo(() => {
42-
return walletInfos.filter((wallet) => {
43-
return props.specifiedWallets.findIndex((x) => x.id === wallet.id) === -1;
44-
});
42+
return walletInfos
43+
.filter((wallet) => {
44+
return (
45+
props.specifiedWallets.findIndex((x) => x.id === wallet.id) === -1
46+
);
47+
})
48+
.filter(
49+
(info) =>
50+
info.id !== "inApp" && info.id !== "embedded" && info.id !== "smart",
51+
);
4552
}, [props.specifiedWallets]);
4653

4754
const fuseInstance = useMemo(() => {

0 commit comments

Comments
 (0)