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

85 reset progress bar #90

Merged
merged 2 commits into from
Aug 6, 2024
Merged

85 reset progress bar #90

merged 2 commits into from
Aug 6, 2024

Conversation

BW82262
Copy link
Contributor

@BW82262 BW82262 commented Aug 6, 2024

Context

Changed the logic for the progress bar on the leaderboards page.
If the user has 5 stamps AND has not redeemed the prize yet, it will stay on the leaderboards page until they've clicked the redeem prize button. This is when they haven't click on the redeem click at all.
Otherwise, if the user has 5 stamps and has previously clicked the redeem prize button but hasn't actually redeemed the prize in person, it will redirect them to the configurations page. This is when there exists a new prize object for the user in the prizes collection, which HAS NOT been redeemed in person yet.

Closes #85

What Changed?

Added new API endpoint to fetch the number of redeemed prizes the user has obtained. It will be used for checking if the user needs to be redirected to the congratulations page.

@BW82262 BW82262 linked an issue Aug 6, 2024 that may be closed by this pull request
4 tasks
@inezchong7 inezchong7 merged commit 624f3da into main Aug 6, 2024
2 checks passed
@inezchong7 inezchong7 deleted the 85-reset-progress-bar branch August 6, 2024 07:16
@derogative404 derogative404 removed a link to an issue Oct 17, 2024
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants