Scheduling infrastructure for absolutely everyone.
fix: missing company name in emails (#9409)
Omar López0ec3c496d820
diff --git a/packages/emails/src/templates/VerifyAccountEmail.tsx b/packages/emails/src/templates/VerifyAccountEmail.tsxindex 462f2ca469f..b59f8174cf8 100644--- a/packages/emails/src/templates/VerifyAccountEmail.tsx+++ b/packages/emails/src/templates/VerifyAccountEmail.tsx@@ -1,6 +1,6 @@import type { TFunction } from "next-i18next";-import { APP_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";+import { APP_NAME, COMPANY_NAME, SUPPORT_MAIL_ADDRESS } from "@calcom/lib/constants";import { BaseEmailHtml, CallToAction } from "../components";@@ -50,7 +50,7 @@ export const VerifyAccountEmail = (style={{ color: "#3E3E3E" }}target="_blank"rel="noreferrer">- <>{props.language("the_calcom_team")}</>+ <>{props.language("the_calcom_team", { companyName: COMPANY_NAME })}</></a></></p>diff --git a/packages/emails/templates/account-verify-email.ts b/packages/emails/templates/account-verify-email.tsindex bcb39e36a7a..74a651ac00e 100644--- a/packages/emails/templates/account-verify-email.ts+++ b/packages/emails/templates/account-verify-email.ts@@ -1,6 +1,6 @@import type { TFunction } from "next-i18next";-import { APP_NAME } from "@calcom/lib/constants";+import { APP_NAME, COMPANY_NAME } from "@calcom/lib/constants";import { renderEmail } from "../";import BaseEmail from "./_base-email";@@ -14,7 +14,6 @@ export type EmailVerifyLink = {verificationEmailLink: string;};-export default class AccountVerifyEmail extends BaseEmail {verifyAccountInput: EmailVerifyLink;@@ -44,7 +43,10 @@ ${this.verifyAccountInput.language("hi_user_name", { name: this.verifyAccountInp${this.verifyAccountInput.language("verify_email_email_body", { appName: APP_NAME })}${this.verifyAccountInput.language("verify_email_email_link_text")}${this.verifyAccountInput.verificationEmailLink}-${this.verifyAccountInput.language("happy_scheduling")} ${this.verifyAccountInput.language("the_calcom_team")}+${this.verifyAccountInput.language("happy_scheduling")} ${this.verifyAccountInput.language(+ "the_calcom_team",+ { companyName: COMPANY_NAME }+ )}`.replace(/(<([^>]+)>)/gi, "");}}