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

feat: add boosted check fix and click fix #455

Merged
merged 2 commits into from
Jan 13, 2024

Conversation

ayushtom
Copy link
Contributor

@ayushtom ayushtom commented Jan 12, 2024

Two fixes-

  1. Cards in boost page are not clickable so fixed the check for it.
  2. the boost amount in quest card tag was hardcoded during last hot fix so added the correct amount here

@ayushtom ayushtom added the 🔥 Ready for review This pull request needs a review label Jan 12, 2024
@ayushtom ayushtom self-assigned this Jan 12, 2024
Copy link

vercel bot commented Jan 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
goerli-starknet-quest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 12, 2024 10:12pm
starknet-quest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 12, 2024 10:12pm

Copy link
Collaborator

@Marchand-Nicolas Marchand-Nicolas left a 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.

Comment on lines 66 to 67
fetchBoosts(id.toString());
}, [isQuestBoosted]);
Copy link
Collaborator

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?

Copy link
Contributor Author

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!

Copy link
Collaborator

@Marchand-Nicolas Marchand-Nicolas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Copy link
Contributor

@fricoben fricoben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@fricoben fricoben merged commit 81d5c16 into testnet Jan 13, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔥 Ready for review This pull request needs a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants