Fix undefined in Calendar and also add manage event again (#3122)

pull/3121/head^2
Hariom Balhara 2022-06-21 14:44:10 +05:30 committed by GitHub
parent 1b81e6d8ec
commit dfc6373bb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -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();
};