Skip to content

Commit f818d2b

Browse files
[SDK] Rename otherWallets to allConnectedWallets in onConnect callback
1 parent 6897871 commit f818d2b

File tree

1 file changed

+3
-3
lines changed
  • packages/thirdweb/src/wallets/connection

1 file changed

+3
-3
lines changed

packages/thirdweb/src/wallets/connection/types.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ export type AutoConnectProps = {
101101
*
102102
* ```tsx
103103
* <AutoConnect
104-
* onConnect={(activeWallet, otherWallets) => {
104+
* onConnect={(activeWallet, allConnectedWallets) => {
105105
* console.log("auto connected to", activeWallet)
106-
* console.log("other wallets that were also connected", otherWallets)
106+
* console.log("all connected wallets", allConnectedWallets)
107107
* }}
108108
* />
109109
* ```
110110
*/
111-
onConnect?: (activeWallet: Wallet, otherWallets: Wallet[]) => void;
111+
onConnect?: (activeWallet: Wallet, allConnectedWallets: Wallet[]) => void;
112112

113113
/**
114114
* Optional chain to autoconnect to

0 commit comments

Comments
 (0)