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

fix: claim button #506

Merged
merged 3 commits into from
Feb 12, 2024
Merged

fix: claim button #506

merged 3 commits into from
Feb 12, 2024

Conversation

ayushtom
Copy link
Contributor

@ayushtom ayushtom commented Feb 8, 2024

Currently users see a disabled claim button when they come on claim page. This happens because API returns claimed field to the FE but since this is not relevant to our usecase now so removing this check. Once removed we can see the button enabled button again.

To check if the user has claimed the reward we do two things now -

  • check if there are any pending claims on the contract through the indexer with the help of endpoint - /boost/get_pending_claims?addr=${addr} - we do this on claim page here
  • check on local storage if the user has clicked on the claim button - we do this on the boost listing page here

Copy link

vercel bot commented Feb 8, 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 Feb 9, 2024 7:38am
starknet-quest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 9, 2024 7:38am

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 9ab18b0 into testnet Feb 12, 2024
4 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.

2 participants