gray-mueller / gray-mueller/react-native-based-food-delivery-app
Tip options in admin panel accept values less than 1 in Enatega
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- 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
Research direction
Start by locating the admin panel's tip configuration form and its current validation, then reproduce the issue with values such as 0 and 0.5. Done means values below 1 are rejected or show an error, while valid tip values can still be saved and do not appear incorrectly in the app.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100