Skip to content

Commit c935fbf

Browse files
committed
[Portal] Fix useChain in migrate docs (#4921)
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the TypeScript SDK v5 cheatsheet to reflect changes in the wallet connection methods, specifically updating the references for the `Get Connected Chain` functionality. ### Detailed summary - Updated the reference for `Get Connected Chain` from [`useSwitchActiveWalletChain()`] to [`useActiveWalletChain()`] in both `page.mdx` files. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
1 parent 63d0777 commit c935fbf

File tree

2 files changed

+3
-3
lines changed
  • apps/portal/src/app

2 files changed

+3
-3
lines changed

apps/portal/src/app/react/v5/migrate/cheatsheet/page.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
| Connect | `ConnectWallet` | [`ConnectButton`](/react/v5/ConnectButton) |
1515
| Connection Status | `useConnectionStatus()` | [`useActiveWalletConnectionStatus()`](/references/typescript/v5/useActiveWalletConnectionStatus) |
1616
| Switch Chain | `useSwitchChain()` | [`useSwitchActiveWalletChain()`](/references/typescript/v5/useSwitchActiveWalletChain) |
17-
| Get Connected Chain | `useChain()` | [`useSwitchActiveWalletChain()`](/references/typescript/v5/useSwitchActiveWalletChain) |
17+
| Get Connected Chain | `useChain()` | [`useActiveWalletChain()`](/references/typescript/v5/useActiveWalletChain) |
1818

1919

2020
### TypeScript Cheatsheet

apps/portal/src/app/typescript/v5/migrate/page.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
ArticleIconCard,
33
} from "@doc";
44
import {
5-
ReactIcon,
5+
ReactIcon,
66
} from "@/icons";
77

88
# Migration from TypeScript SDK v4
@@ -178,4 +178,4 @@ const onClick = async () => {
178178
| Connect | `ConnectWallet` | [`ConnectButton`](/react/v5/ConnectButton) |
179179
| Connection Status | `useConnectionStatus()` | [`useActiveWalletConnectionStatus()`](/references/typescript/v5/useActiveWalletConnectionStatus) |
180180
| Switch Chain | `useSwitchChain()` | [`useSwitchActiveWalletChain()`](/references/typescript/v5/useSwitchActiveWalletChain) |
181-
| Get Connected Chain | `useChain()` | [`useSwitchActiveWalletChain()`](/references/typescript/v5/useSwitchActiveWalletChain) |
181+
| Get Connected Chain | `useChain()` | [`useActiveWalletChain()`](/references/typescript/v5/useActiveWalletChain) |

0 commit comments

Comments
 (0)