Skip to content

Scheduling infrastructure for absolutely everyone.

Fix/email shows false (#2879)

Carina Wollendorferba4d2425cfce
diff --git a/apps/web/lib/emails/templates/attendee-scheduled-email.ts b/apps/web/lib/emails/templates/attendee-scheduled-email.ts
index 91f4afc0817..a791a005735 100644
--- a/apps/web/lib/emails/templates/attendee-scheduled-email.ts
+++ b/apps/web/lib/emails/templates/attendee-scheduled-email.ts
@@ -428,12 +428,13 @@ ${getRichDescription(this.calEvent)}
<p style="color: #494949; font-weight: 400; line-height: 24px;">${
providerName || this.calEvent.location
}</p>
- <p style="color: #494949; font-weight: 400; line-height: 24px;">${
- (providerName === "Zoom" || providerName === "Google") &&
- `
- ${this.calEvent.organizer.language.translate("meeting_url_provided_after_confirmed")}
- `
- }</p>
+ ${
+ providerName === "Zoom" || providerName === "Google"
+ ? `<p style="color: #494949; font-weight: 400; line-height: 24px;">
+ ${this.calEvent.organizer.language.translate("meeting_url_provided_after_confirmed")}
+ </p>`
+ : ``
+ }
</div>
`;
}
diff --git a/apps/web/lib/emails/templates/organizer-scheduled-email.ts b/apps/web/lib/emails/templates/organizer-scheduled-email.ts
index 75c0254ae31..5059e588722 100644
--- a/apps/web/lib/emails/templates/organizer-scheduled-email.ts
+++ b/apps/web/lib/emails/templates/organizer-scheduled-email.ts
@@ -417,12 +417,13 @@ ${getRichDescription(this.calEvent)}
<p style="color: #494949; font-weight: 400; line-height: 24px;">${
providerName || this.calEvent.location
}</p>
- <p style="color: #494949; font-weight: 400; line-height: 24px;">${
- (providerName === "Zoom" || providerName === "Google") &&
- `
- ${this.calEvent.organizer.language.translate("meeting_url_provided_after_confirmed")}
- `
- }</p>
+ ${
+ providerName === "Zoom" || providerName === "Google"
+ ? `<p style="color: #494949; font-weight: 400; line-height: 24px;">
+ ${this.calEvent.organizer.language.translate("meeting_url_provided_after_confirmed")}
+ </p>`
+ : ``
+ }
</div>
`;
}