diff options
author | Michael Hunteman <michael@huntm.net> | 2024-07-06 16:27:15 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-07-06 16:27:15 -0700 |
commit | 865d3fcb6780e209d209e4e7735c318ef32733dc (patch) | |
tree | 7ed564937451f5180b0f084f0c4540c71963aa2c /client/src | |
parent | bacefa8db406aa188d27670649bb57f12a3b4c47 (diff) |
Populate RSVP form
Diffstat (limited to 'client/src')
-rw-r--r-- | client/src/components/RsvpForm.tsx | 11 |
1 files changed, 5 insertions, 6 deletions
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: { |