diff --git a/lib/emails/confirm-booked.ts b/lib/emails/confirm-booked.ts index 868ad001..32c45695 100644 --- a/lib/emails/confirm-booked.ts +++ b/lib/emails/confirm-booked.ts @@ -54,8 +54,10 @@ const html = (calEvent: CalendarEvent) => {
Your ${calEvent.type} with ${calEvent.organizer.name} at ${inviteeStart.format('h:mma')} (${calEvent.attendees[0].timeZone}) on ${inviteeStart.format('dddd, LL')} is scheduled.
-
- Additional notes:
+
` + ( + calEvent.location ? `Location: ${calEvent.location}

` : '' + ) + + `Additional notes:
${calEvent.description} `; diff --git a/lib/emails/new-event.ts b/lib/emails/new-event.ts index 21c9b5e2..0513ee67 100644 --- a/lib/emails/new-event.ts +++ b/lib/emails/new-event.ts @@ -78,9 +78,16 @@ const html = (evt: CalendarEvent) => ` ${evt.type}

Invitee Email:
- ${evt.attendees[0].email}
-
- Invitee Time Zone:
+ ${evt.attendees[0].email}
+
` + + ( + evt.location ? ` + Location:
+ ${evt.location}
+
+ ` : '' + ) + + `Invitee Time Zone:
${evt.attendees[0].timeZone}

Additional notes: