Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bug/ fix points redemption validation to prevent overspending #252

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

LuuNa-JD
Copy link

This PR addresses a bug that allowed clubs to redeem more points than they had available, which led to negative point balances. With this fix:

  • A validation check now ensures that clubs cannot book more places than their available points.
  • An error message is displayed to the user if they try to redeem more points than they have, and the booking process is halted.
  • Tests have been added to confirm that the validation logic works as expected, preventing overspending.

Linked Issue: #2

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant