Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useWallet() return value undefine #857

Open
moran666666 opened this issue Mar 20, 2025 · 1 comment
Open

useWallet() return value undefine #857

moran666666 opened this issue Mar 20, 2025 · 1 comment
Labels
documentation Improvements or additions to documentation sdks All content under https://aptos.dev/en/build/sdks

Comments

@moran666666
Copy link

Url

https://aptos.dev/en/build/sdks/wallet-adapter/dapp#import-usewallet-in-files-where-you-want-to-access-data-from-the-provider

Describe the content issue

import { useWallet } from "@aptos-labs/wallet-adapter-react";
 
// Access fields / functions from the adapter
const { account, connected, wallet, changeNetwork } = useWallet();

I wrote it according to the tutorial, why { account, connected, wallet, changeNetwork } only connected is false and other are undefine?(My chrome brower have "Petra" and "OKXWallet" plug-in)

Section

sdks

@moran666666 moran666666 added the documentation Improvements or additions to documentation label Mar 20, 2025
@github-actions github-actions bot added the sdks All content under https://aptos.dev/en/build/sdks label Mar 20, 2025
Copy link

@aptos-labs/developer-platform

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation sdks All content under https://aptos.dev/en/build/sdks
Projects
None yet
Development

No branches or pull requests

1 participant