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(
100
100
. filter (
101
101
( info ) => ! externalWallets . find ( ( wallet ) => wallet . id === info . id ) ,
102
102
)
103
+ . filter (
104
+ ( info ) =>
105
+ info . id !== "inApp" && info . id !== "embedded" && info . id !== "smart" ,
106
+ )
103
107
. filter ( ( info ) => info . hasMobileSupport ) ;
104
108
105
109
const fuse = new Fuse ( filteredWallets , {
Original file line number Diff line number Diff line change @@ -39,9 +39,16 @@ function AllWalletsUI(props: {
39
39
const setSelectionData = useSetSelectionData ( ) ;
40
40
41
41
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
+ ) ;
45
52
} , [ props . specifiedWallets ] ) ;
46
53
47
54
const fuseInstance = useMemo ( ( ) => {
You can’t perform that action at this time.
0 commit comments