summaryrefslogtreecommitdiff
path: root/client/src/components/RsvpForm.tsx
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-07-06 16:27:15 -0700
committerMichael Hunteman <michael@huntm.net>2024-07-06 16:27:15 -0700
commit865d3fcb6780e209d209e4e7735c318ef32733dc (patch)
tree7ed564937451f5180b0f084f0c4540c71963aa2c /client/src/components/RsvpForm.tsx
parentbacefa8db406aa188d27670649bb57f12a3b4c47 (diff)
Populate RSVP form
Diffstat (limited to 'client/src/components/RsvpForm.tsx')
-rw-r--r--client/src/components/RsvpForm.tsx11
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: {