summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b3ed3b3..5fdf390 100644
--- a/client/src/components/RsvpForm.tsx
+++ b/client/src/components/RsvpForm.tsx
@@ -40,7 +40,7 @@ function RsvpForm() {
const [updateGuest, { isLoading, isSuccess, isError }] =
useUpdateGuestMutation();
const guest: Guest = useOutletContext();
- const previousPartySize = useRef(guest.partySize ?? 1 - 1);
+ const previousPartySize = useRef((guest.partySize ?? 1) - 1);
const [open, setOpen] = useState<boolean>(false);
useEffect(() => {