summaryrefslogtreecommitdiff
path: root/client/src/components/RsvpForm.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'client/src/components/RsvpForm.tsx')
-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) => {