diff options
author | Michael Hunteman <michael@huntm.net> | 2024-07-06 20:18:20 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-07-06 20:18:20 -0700 |
commit | 44ab9e0ec7c16bc85decfed8a7a59273f555f858 (patch) | |
tree | 95ecffdf1a195832ed6dd840878ce8e881149cf1 /client/src/components | |
parent | c2f6a266711e9481b5d74037561c09c1c4547d05 (diff) |
Use guest party size as previous party size
Diffstat (limited to 'client/src/components')
-rw-r--r-- | client/src/components/RsvpForm.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/components/RsvpForm.tsx b/client/src/components/RsvpForm.tsx index 06c20c0..06669e3 100644 --- a/client/src/components/RsvpForm.tsx +++ b/client/src/components/RsvpForm.tsx @@ -19,7 +19,7 @@ import type { Guest } from '../apiSlice'; function RsvpForm() { const [updateGuest] = useUpdateGuestMutation(); const guest: Guest = useOutletContext(); - const previousPartySize = useRef(0); + const previousPartySize = useRef(guest?.partySize - 1); const { register, |