Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 6: Stringify or parse? #6

Open
swayam-agrahari opened this issue Oct 21, 2024 · 0 comments
Open

Issue 6: Stringify or parse? #6

swayam-agrahari opened this issue Oct 21, 2024 · 0 comments

Comments

@swayam-agrahari
Copy link
Owner

swayam-agrahari commented Oct 21, 2024

The PersonalInfo component has some issues with its validation logic. There are discrepancies between the expected error messages and the conditions being checked.

Steps to Reproduce

  1. Open the PersonalInfo component.
  2. Check the validation function for input fields.
  3. Attempt to submit the form with incomplete or incorrect data.

Expected Behavior

The validation should correctly identify and return appropriate error messages for:

  • Missing name
  • Invalid email format
  • Non-positive age

Current Behavior

Upon checking the validation function, the error messages do not align with their respective conditions. The following mismatches were observed:

  • The error message for name validation incorrectly references age.
  • The error message for email validation incorrectly references name.
  • The age validation check does not properly validate positive numbers.

Suggested Investigation

Fix the issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant