gray-mueller / gray-mueller/food-delivering-app-using-react-native

Delivery Xpress Admin Dashboard: Restrict and show error message when two same tip-Amount entered

Open
#769 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
Duplicate Tip Amounts should not be Allowed and display some Error Message. The application currently allows users to enter the same tip amount more than once. There is no validation or error message shown when duplicate tip values are entered, which may lead to confusion or incorrect data submission.

To Reproduce
Steps to reproduce the behavior:

Navigate to the tip entry section.
Enter a tip amount (e.g., 10) in the first input field.
Enter the same amount (10) in another input field.
Observe that both entries are accepted without any error message.
Expected behavior
The system should detect duplicate tip amounts and restrict the user from entering the same value more than once. An appropriate error message should be displayed, such as:
"Duplicate tip amounts are not allowed."

Screenshots

Image
Desktop (please complete the following information):

OS: [e.g. Windows]
Browser [e.g. chrome]
Version [e.g. Latest]

Contributor guide

Open the contributing guide

Research direction

Start by locating the tip entry section in the React Native application and trace how multiple tip amounts are stored and validated. Reproduce the issue with two identical values, then add validation and an error message that prevents duplicate submissions. Done means identical tip amounts are rejected and the message is visible to the user.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.