gray-mueller / gray-mueller/restaurant-online-ordering-app-using-java

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

Open
#809 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

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.