From ed58c4c930758502ed61cf4f825cb3d4d5759087 Mon Sep 17 00:00:00 2001 From: MananTank Date: Mon, 18 Nov 2024 19:22:24 +0000 Subject: [PATCH] [SDK] Fix useSetActiveWallet code example in JSDoc (#5444) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Problem solved Short description of the bug fixed or feature added --- ## 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}` --- .../src/react/core/hooks/wallets/useSetActiveWallet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/thirdweb/src/react/core/hooks/wallets/useSetActiveWallet.ts b/packages/thirdweb/src/react/core/hooks/wallets/useSetActiveWallet.ts index b2a9671f677..10763abcf6e 100644 --- a/packages/thirdweb/src/react/core/hooks/wallets/useSetActiveWallet.ts +++ b/packages/thirdweb/src/react/core/hooks/wallets/useSetActiveWallet.ts @@ -9,10 +9,10 @@ import { useConnectionManagerCtx } from "../../providers/connection-manager.js"; * ```jsx * import { useSetActiveWallet } from "thirdweb/react"; * - * const setActiveAccount = useSetActiveWallet(); + * const setActiveWallet = useSetActiveWallet(); * * // later in your code - * await setActiveAccount(account); + * await setActiveWallet(wallet); * ``` * @walletConnection */