From 8e493cd7ed804495495b3a2bc284b531c9044cd2 Mon Sep 17 00:00:00 2001 From: Starstrike Date: Thu, 1 May 2025 17:21:51 -0400 Subject: [PATCH] style: make RSVPs count display format consistent across views --- frontend/src/components/EventAdmin.tsx | 2 +- frontend/src/components/EventView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/EventAdmin.tsx b/frontend/src/components/EventAdmin.tsx index 5db03f8..ec5854a 100644 --- a/frontend/src/components/EventAdmin.tsx +++ b/frontend/src/components/EventAdmin.tsx @@ -689,7 +689,7 @@ const EventAdmin: React.FC = () => { - RSVPs ({rsvps.length}) | Total Guests: {rsvps.reduce((total, rsvp) => { + RSVPs: {rsvps.length} | Total Guests: {rsvps.reduce((total, rsvp) => { // Count the RSVP person as 1 if they're attending const rsvpCount = rsvp.attending === 'yes' ? 1 : 0; // Add their guests if they're bringing any diff --git a/frontend/src/components/EventView.tsx b/frontend/src/components/EventView.tsx index ac29cc3..44f2837 100644 --- a/frontend/src/components/EventView.tsx +++ b/frontend/src/components/EventView.tsx @@ -242,7 +242,7 @@ const EventView: React.FC = () => { - RSVPs ({rsvps.length}) | Total Guests: {rsvps.reduce((total, rsvp) => { + RSVPs: {rsvps.length} | Total Guests: {rsvps.reduce((total, rsvp) => { // Count the RSVP person as 1 if they're attending const rsvpCount = rsvp.attending === 'yes' ? 1 : 0; // Add their guests if they're bringing any