gray-mueller / gray-mueller/online-ordering-and-delivery-system-using-python
Tip options in admin panel accept values less than 1 in Enatega
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Tip options in admin panel accept values less than 1 in Enatega
Describe the bug
In the Enatega admin panel, the tip configuration allows values less than 1 (e.g., 0 or 0.5), which should not be permitted. These invalid values can then appear in the app and lead to inconsistent behavior.
To Reproduce
Steps to reproduce the behavior:
Log in to the Enatega admin panel.
Navigate to the section where tip options are set or configured.
Enter a tip value less than 1.
Save and observe that the value is accepted without validation.
Expected behavior
The admin panel should enforce validation rules that restrict tip options to a minimum value of 1. Inputs below this threshold should be rejected or trigger an error message.
Smartphone (please complete the following information):
Device: Samsung A15 (used to observe the result in the app)
OS: Android
Additional context
This is an issue originating in the admin panel, not the app itself. Allowing invalid tip values at the admin level may cause confusion or display issues in the user-facing app.
Contributor guide
Assessment
This issue has not been assessed yet.