Skip to content

Commit ed58c4c

Browse files
committed
[SDK] Fix useSetActiveWallet code example in JSDoc (#5444)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on renaming a variable for clarity in the `useSetActiveWallet` hook implementation within the `useSetActiveWallet.ts` file. ### Detailed summary - Renamed the variable `setActiveAccount` to `setActiveWallet` for consistency with the hook name. - Updated the usage of the variable to `await setActiveWallet(wallet);` to reflect the new name. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 8e22cf8 commit ed58c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/thirdweb/src/react/core/hooks/wallets/useSetActiveWallet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import { useConnectionManagerCtx } from "../../providers/connection-manager.js";
99
* ```jsx
1010
* import { useSetActiveWallet } from "thirdweb/react";
1111
*
12-
* const setActiveAccount = useSetActiveWallet();
12+
* const setActiveWallet = useSetActiveWallet();
1313
*
1414
* // later in your code
15-
* await setActiveAccount(account);
15+
* await setActiveWallet(wallet);
1616
* ```
1717
* @walletConnection
1818
*/

0 commit comments

Comments
 (0)