lambertf917 / lambertf917/react-native-uber-eats-clone

Enatega Admin Dashboard: When adding a Coupon, Discount field is allowing to enter more than 100%

Open
#222 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug Enatega Multivendor Admin Dashboard good first issue High Priority
Dominant language
JavaScript
Stars
3
Forks
5
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When adding a coupon, the Discount field allows users to enter a value greater than 100%, which is invalid. This could lead to incorrect calculations and potential financial losses or Also display an error message that discount percentage should not exceed 100%.

To Reproduce
Steps to reproduce the behavior:

  1. Navigate to the Coupon Management section.
  2. Click on Add New Coupon.
  3. Enter a discount value greater than 100% (e.g., 150%).
  4. Save the coupon, it will not save it so it should display an error message or restrict it to not enter amount greater than 100%.

Expected behavior
The system should restrict the Discount field to a maximum of 100% and display a validation error if a higher value is entered.

Desktop (please complete the following information):

  • OS: [e.g. Windows]
  • Browser [e.g. Chrome]
  • Version [e.g. Latest]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the Coupon Management or Add New Coupon component in the admin dashboard and inspect the Discount field validation. Reproduce the issue with a value above 100%; done means values over 100% are rejected and an error explains that the discount percentage cannot exceed 100%.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.