From 5a65b3a653eb4a9ca62332fa65c8d352e6dc782f Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sun, 20 Oct 2024 18:52:16 -0700 Subject: Use UUID --- client/.env.development | 2 +- client/.env.test | 2 +- client/src/components/RsvpForm.tsx | 11 +---------- client/src/models.ts | 2 +- 4 files changed, 4 insertions(+), 13 deletions(-) (limited to 'client') diff --git a/client/.env.development b/client/.env.development index be2cee9..eab1509 100644 --- a/client/.env.development +++ b/client/.env.development @@ -1 +1 @@ -VITE_BASE_URL=http://192.168.1.18:8080/api/ +VITE_BASE_URL=http://192.168.1.11:8080/api/ diff --git a/client/.env.test b/client/.env.test index be2cee9..eab1509 100644 --- a/client/.env.test +++ b/client/.env.test @@ -1 +1 @@ -VITE_BASE_URL=http://192.168.1.18:8080/api/ +VITE_BASE_URL=http://192.168.1.11:8080/api/ 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({ - 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) => { diff --git a/client/src/models.ts b/client/src/models.ts index 201a969..c0cff9e 100644 --- a/client/src/models.ts +++ b/client/src/models.ts @@ -1,5 +1,5 @@ export interface Guest { - id?: number; + id?: string; firstName: string; lastName: string; attendance?: string; -- cgit v1.2.3