summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorMichael Hunteman <michael@huntm.net>2024-07-06 20:18:20 -0700
committerMichael Hunteman <michael@huntm.net>2024-07-06 20:18:20 -0700
commit44ab9e0ec7c16bc85decfed8a7a59273f555f858 (patch)
tree95ecffdf1a195832ed6dd840878ce8e881149cf1 /client
parentc2f6a266711e9481b5d74037561c09c1c4547d05 (diff)
Use guest party size as previous party size
Diffstat (limited to 'client')
-rw-r--r--client/src/components/RsvpForm.tsx2
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,