-
Notifications
You must be signed in to change notification settings - Fork 162
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
feat: add boosted check fix and click fix #455
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Great PR! Just a little something to tweak in my opinion.
I'm not used to doing code reviews, so feel free to discuss about the requested change, I could be wrong.
components/quests/quest.tsx
Outdated
fetchBoosts(id.toString()); | ||
}, [isQuestBoosted]); |
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.
Shouldn't we add "id" as a dependency: }, [isQuestBoosted, id]);
? In case we want to dynamically change a card (this is not useful at the moment, but it would avoid weird behaviours in futur use cases I think), otherwise the "1000 USDC" tag would stay, even if it's not the same value as the former card or not boosted at all. What do you think?
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.
yes. this is a fair feedback. Adding props which are involved in the operation is a good practice. Thank you for pointing this out!
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.
lgtm!
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.
lgtm
Two fixes-