We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aa67f3 commit 6173d78Copy full SHA for 6173d78
src/lib/hooks/use-wallet.ts
@@ -1,4 +1,5 @@
1
-import { useAccount, usePublicClient } from 'wagmi'
+import { useAppKitAccount } from '@reown/appkit/react'
2
+import { usePublicClient } from 'wagmi'
3
4
import { useNetwork } from '@/lib/hooks/use-network'
5
@@ -16,7 +17,7 @@ type Account = {
16
17
18
// A wrapper to be able to easily exchange how we retrieve the account
19
export const useWallet = (): Account => {
- const { address } = useAccount()
20
+ const { address } = useAppKitAccount()
21
const { chainId } = useNetwork()
22
const publicClient = usePublicClient({ chainId })
23
const isConnected = !!address
0 commit comments