File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
packages/thirdweb/src/wallets/manager Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " thirdweb " : minor
3+ ---
4+
5+ Hides admin wallets if smart wallets are in use
Original file line number Diff line number Diff line change @@ -83,7 +83,13 @@ export function createConnectionManager(storage: AsyncStorage) {
8383 const isAutoConnecting = createStore ( false ) ;
8484
8585 const connectedWallets = computedStore ( ( ) => {
86- return Array . from ( walletIdToConnectedWalletMap . getValue ( ) . values ( ) ) ;
86+ const allWallets = Array . from (
87+ walletIdToConnectedWalletMap . getValue ( ) . values ( ) ,
88+ ) ;
89+ const hasSmartWallet = allWallets . some ( ( w ) => isSmartWallet ( w ) ) ;
90+ return hasSmartWallet
91+ ? allWallets . filter ( ( w ) => w . id !== "inApp" )
92+ : allWallets ;
8793 } , [ walletIdToConnectedWalletMap ] ) ;
8894
8995 // actions
You can’t perform that action at this time.
0 commit comments