Skip to content

Commit

Permalink
Fix undefined in Calendar and also add manage event again (calcom#3122)
Browse files Browse the repository at this point in the history
  • Loading branch information
hariombalhara authored Jun 21, 2022
1 parent 1b81e6d commit dfc6373
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions packages/lib/CalEventParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)}
Expand All @@ -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();
};
Expand Down

0 comments on commit dfc6373

Please sign in to comment.