diff --git a/peopleportal/server/src/clients/AgendaClient/Jobs/index.ts b/peopleportal/server/src/clients/AgendaClient/Jobs/index.ts index 0a5a0c8..5711fe3 100644 --- a/peopleportal/server/src/clients/AgendaClient/Jobs/index.ts +++ b/peopleportal/server/src/clients/AgendaClient/Jobs/index.ts @@ -67,7 +67,7 @@ class JobHelperFunctions { endTime: event.endTime.toLocaleString("en-US", { timeZone: "America/New_York", }), - location: event.location, + eventLocation: event.location, inviteLink: inviteLink, googleCalendarLink: gCalendarLink, }, diff --git a/peopleportal/webui/src/components/fabric/EventAttendance.tsx b/peopleportal/webui/src/components/fabric/EventAttendance.tsx index 6619dd9..97349c9 100644 --- a/peopleportal/webui/src/components/fabric/EventAttendance.tsx +++ b/peopleportal/webui/src/components/fabric/EventAttendance.tsx @@ -175,6 +175,16 @@ const statusVariant = ( return "secondary"; } }; +const statusLabel = (status: RsvpStatus): string => { + switch (status) { + case "Accept": + return "Accepted"; + case "Decline": + return "Declined"; + case "Cancel": + return "Cancelled"; + } +}; const EventFormDialog = ({ open, @@ -757,9 +767,7 @@ export const EventAttendance = () => { - {rsvp.status === "Accept" - ? "Accepted" - : "Declined"} + {statusLabel(rsvp.status)} {updating ? (