From 865d3fcb6780e209d209e4e7735c318ef32733dc Mon Sep 17 00:00:00 2001 From: Michael Hunteman Date: Sat, 6 Jul 2024 16:27:15 -0700 Subject: Populate RSVP form --- client/src/components/RsvpForm.tsx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'client/src') diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx index 9ac2d53..06c20c0 100644 --- a/client/src/components/RsvpForm.tsx +++ b/client/src/components/RsvpForm.tsx @@ -32,11 +32,11 @@ function RsvpForm() { id: guest?.id, firstName: guest?.firstName, lastName: guest?.lastName, - attendance: '', - email: '', - message: '', - partySize: 1, - partyList: [], + attendance: guest?.attendance, + email: guest?.email, + message: guest?.message, + partySize: guest?.partySize, + partyList: guest?.partyList, }, }); @@ -126,7 +126,6 @@ function RsvpForm() { fullWidth error={!!errors.email} helperText={errors.email?.message} - required {...register('email', { required: 'This field is required', pattern: { -- cgit v1.2.3