gray-mueller / gray-mueller/liquor-ordering-app-node-js

Enatega Admin Dashboard: When adding a new staff and Rider , phone number is added by taking just one digit number

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

Description

Describe the bug
When attempting to add a new staff member, the phone number input only captures and saves the first digit entered. Also displaying a error message that number is already associated with another account.
Fix it on its update page also
Steps to Reproduce:

Navigate to the "Add New Staff" page.
Fill out all required fields.
Now if user fills the phone number by adding only just one number it accepts it as a full number.
Click on "Save" or "Submit."
Expected behavior
The full phone number (e.g., "1234567890") should be saved and displayed correctly.

Screenshots

Staff.PN.video-converter.com.mp4
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 reproducing the issue on the Add New Staff page, then inspect the corresponding staff and Rider update pages and their phone-number input handling. Verify how a single digit is accepted and why the duplicate-account error appears; done means full phone numbers are saved and displayed correctly on both add and update flows.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.