diff --git a/packages/emails/src/templates/AttendeeRequestEmail.tsx b/packages/emails/src/templates/AttendeeRequestEmail.tsx index c05b9a6e4c..3f827b5690 100644 --- a/packages/emails/src/templates/AttendeeRequestEmail.tsx +++ b/packages/emails/src/templates/AttendeeRequestEmail.tsx @@ -2,12 +2,12 @@ import { AttendeeScheduledEmail } from "./AttendeeScheduledEmail"; export const AttendeeRequestEmail = (props: React.ComponentProps) => ( - {props.calEvent.organizer.language.translate( + {props.calEvent.attendees[0].language.translate( props.calEvent.recurringEvent?.count ? "user_needs_to_confirm_or_reject_booking_recurring" : "user_needs_to_confirm_or_reject_booking", @@ -16,7 +16,7 @@ export const AttendeeRequestEmail = (props: React.ComponentProps } headerType="calendarCircle" - subject="booking_submitted_subject" + subject={props.calEvent.attendees[0].language.translate("booking_submitted_subject")} {...props} /> ); diff --git a/packages/emails/templates/attendee-request-email.ts b/packages/emails/templates/attendee-request-email.ts index 4bdc21e82f..b4f10f9687 100644 --- a/packages/emails/templates/attendee-request-email.ts +++ b/packages/emails/templates/attendee-request-email.ts @@ -16,7 +16,7 @@ export default class AttendeeRequestEmail extends AttendeeScheduledEmail { return { from: `Cal.com <${this.getMailerOptions().from}>`, to: toAddresses.join(","), - subject: `${this.calEvent.organizer.language.translate("booking_submitted_subject", { + subject: `${this.calEvent.attendees[0].language.translate("booking_submitted_subject", { eventType: this.calEvent.type, name: this.calEvent.team?.name || this.calEvent.organizer.name, date: this.getFormattedDate(),