fix: missing company name in emails (#9409)
This commit is contained in:
parent
62ec3de0b1
commit
0ec3c496d8
|
@ -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>
|
||||
|
|
|
@ -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, "");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user