getToken function doesn't work with prop as address #309
Unanswered
daraolayebi
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to get the symbol of a token using the useToken hook, and I want to fetch it manually using the getToken function.
I'm passing the token address to the component as a prop, and then passing that prop to the hook. However, getToken doesn't work unless the address is passed directly as a string. I keep getting this error: TypeError: Cannot destructure property 'address' of '_ref' as it is undefined.
I'm also checking to make sure that the token is available in the component before calling getToken.
See below for reference:
Has anyone else experienced this issue?
Beta Was this translation helpful? Give feedback.
All reactions