File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed
packages/thirdweb/src/react
web/ui/ConnectWallet/Modal Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : patch
3+ ---
4+
5+ Fix inapp wallets showing up in all wallets list
Original file line number Diff line number Diff 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 , {
Original file line number Diff line number Diff 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 ( ( ) => {
You can’t perform that action at this time.
0 commit comments