RamakrushnaBiswal / PlayCafe

it a cafe website🚀
https://play-cafe.vercel.app/
MIT License
34 stars 87 forks source link

Feat: Fix Reservation Form Validation Error #299

Open samar12-rad opened 6 days ago

samar12-rad commented 6 days ago

Describe the feature

Description: The reservation form is currently throwing a validation error related to the email field. The error message indicates that the form is receiving undefined for the "email" field, while it expects a string. This needs to be resolved so that the form processes correctly when submitting a reservation.

Error: json [ { "code": "invalid_type", "expected": "string", "received": "undefined", "path": [ "email" ], "message": "Required" } ] Acceptance Criteria: The reservation form should correctly capture and validate the email field as a string. The form should no longer throw the above validation error during submission. Test the form to ensure the error doesn't occur for valid email inputs.

Tasks: Investigate why the email field is receiving undefined instead of a string. Fix the form logic to correctly handle and validate the email field. Ensure the email input is properly connected to the state and sent to the backend. Test to confirm that the error is resolved.

Add ScreenShots

image

Record

github-actions[bot] commented 6 days ago

Thank you for creating this issue! 🎉 We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our CONTRIBUTING.md for guidelines on contributing to this project. for more information join our discord https://discord.gg/Jh3bWQ7FRN

RamakrushnaBiswal commented 6 days ago

assigned @samar12-rad