-
Notifications
You must be signed in to change notification settings - Fork 50
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
feature(wallet-mobile): NFTs traits #3274
Conversation
|
||
return { | ||
...query, | ||
tokenTraits: query.data, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If i am not wrong traits its a property of data right? query.data.traits
would it be a good idea to get the traits so you dont need to use tokenTraits.traits
?
or does query.data
contain more useful properties?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok i see it includes total items property
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return {
...query,
tokenTraits: query.data.traits,
totalItems: query.data.totalItems,
}
Maybe like this?
To avoid tokenTraits.traits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yap, some info are not important cuz it does have the info
before hitting it.
fbfb60c
to
0532115
Compare
Description / Change(s) / Related issue(s)
Ticket
YOMO-1457
Note
Please create the ticket if missing it.