Scheduling infrastructure for absolutely everyone.
Fix undefined in Calendar and also add manage event again (#3122)
Hariom Balharadfc6373bb449
diff --git a/packages/lib/CalEventParser.ts b/packages/lib/CalEventParser.tsindex bee5faa5c79..7cafeb3b673 100644--- a/packages/lib/CalEventParser.ts+++ b/packages/lib/CalEventParser.ts@@ -116,7 +116,7 @@ export const getCancelLink = (calEvent: CalendarEvent): string => {return WEBAPP_URL + "/cancel/" + getUid(calEvent);};-export const getRichDescription = (calEvent: CalendarEvent, attendee?: Person) => {+export const getRichDescription = (calEvent: CalendarEvent /*, attendee?: Person*/) => {return `${getCancellationReason(calEvent)}${getWhat(calEvent)}@@ -128,16 +128,17 @@ ${getDescription(calEvent)}${getAdditionalNotes(calEvent)}${getCustomInputs(calEvent)}${- // Only the original attendee can make changes to the event+ // TODO: Only the original attendee can make changes to the event// Guests cannot- attendee && attendee.email === calEvent.attendees[0].email ? getManageLink(calEvent) : ""+ getManageLink(calEvent)}${- calEvent.paymentInfo &&- `+ calEvent.paymentInfo+ ? `${calEvent.organizer.language.translate("pay_now")}:${calEvent.paymentInfo.link}`+ : ""}`.trim();};