From 5a65b3a653eb4a9ca62332fa65c8d352e6dc782f Mon Sep 17 00:00:00 2001
From: Michael Hunteman <michael@huntm.net>
Date: Sun, 20 Oct 2024 18:52:16 -0700
Subject: Use UUID

---
 client/src/components/RsvpForm.tsx | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

(limited to 'client/src/components/RsvpForm.tsx')

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) => {
-- 
cgit v1.2.3

