summaryrefslogtreecommitdiff
path: root/client/src/components/RsvpForm.tsx
diff options
context:
space:
mode:
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: {