Skip to content
This repository has been archived by the owner on May 26, 2024. It is now read-only.

fix: require email and phonenumber fields #453

Merged
merged 2 commits into from
Jul 9, 2023

Conversation

bddjong
Copy link
Contributor

@bddjong bddjong commented Jul 9, 2023

This change forces the user to enter an email and phone number. It uses the react-use-form hook dependency to validate whether or not a specific field is invalid and if a submission has been attempted, in which case the form field will receive the invalid attribute.

An improvement on this would be showing the error message per field better highlight and explain why a field is invalid

Resolves: #437

@vercel
Copy link

vercel bot commented Jul 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
utrecht-huwelijksplanner ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2023 9:47am

@bddjong bddjong merged commit e18b8de into main-update Jul 9, 2023
3 checks passed
@bddjong bddjong deleted the fix/required-person-data branch July 9, 2023 09:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant