marthaegrimaldi / marthaegrimaldi/ifood-clone-using-react-native
Tip options in admin panel accept values less than 1 in Enatega
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 0
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the Enatega admin panel's tip configuration area and reproduce the issue by entering 0 and 0.5. Trace the existing input validation and confirm that values below 1 are rejected or show an error, then repeat the reproduction steps to verify that invalid tip options cannot be saved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100