fix: missing company name in emails (#9409)

This commit is contained in:
Omar López 2023-06-07 15:32:57 -07:00 committed by zomars
parent 62ec3de0b1
commit 0ec3c496d8
2 changed files with 7 additions and 5 deletions

View File

@ -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>

View File

@ -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, "");
}
}