summaryrefslogtreecommitdiff
path: root/client/src/components
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-10-20 18:52:16 -0700
committerMichael Hunteman <michael@huntm.net>2024-10-20 18:52:16 -0700
commit5a65b3a653eb4a9ca62332fa65c8d352e6dc782f (patch)
tree6f2fabb06936a7290a2f5e94a1b3aaf4534bf87c /client/src/components
parent5c8f0ca091ff7f962260c75a0ffe4c99e7cdca3c (diff)
Use UUID
Diffstat (limited to 'client/src/components')
-rw-r--r--client/src/components/RsvpForm.tsx11
1 files changed, 1 insertions, 10 deletions
diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx
index 2a3552f..53fefa4 100644
--- a/client/src/components/RsvpForm.tsx
+++ b/client/src/components/RsvpForm.tsx
@@ -34,16 +34,7 @@ function RsvpForm() {
watch,
formState: { errors },
} = useForm<Guest>({
- defaultValues: {
- id: guest.id,
- firstName: guest.firstName,
- lastName: guest.lastName,
- attendance: guest.attendance,
- email: guest.email,
- message: guest.message,
- partySize: guest.partySize,
- partyList: guest.partyList,
- },
+ defaultValues: guest,
});
const onSubmit = async (data: Guest) => {