Skip to content

Conversation

@Sneha0321
Copy link

Summary:
This pull request improves the input validation on the checkout form to ensure that the name and phone number fields are properly validated before submission.

Changes Made:

Added validation rules for the Name field to allow only letters and spaces.

Added validation rules for the Phone field to allow only valid 10-digit numbers.

Updated error messages to guide the user if the input is invalid.

Refactored existing form validation code for better readability and maintainability.

Removed redundant or buggy validation logic.

Impact:

Prevents users from submitting invalid data.

Improves overall user experience on the checkout page.

Makes future maintenance easier due to cleaner validation code.

Testing Done:

Manually tested with valid and invalid inputs for both fields.

Verified that form submission is blocked if any validation fails.

Additional Notes:

No changes were made to other parts of the project.

Fully backward-compatible with the existing checkout process.

@vercel
Copy link

vercel bot commented Oct 8, 2025

@Sneha0321 is attempting to deploy a commit to the Priya Ghosal's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 8, 2025

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our contributing.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@netlify
Copy link

netlify bot commented Oct 8, 2025

Deploy Preview for deft-gumdrop-157857 ready!

Name Link
🔨 Latest commit 7ebfa0e
🔍 Latest deploy log https://app.netlify.com/projects/deft-gumdrop-157857/deploys/68e68d52d9d7fc00084cf324
😎 Deploy Preview https://deploy-preview-2009--deft-gumdrop-157857.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant