Skip to content

Commit

Permalink
fix: missing company name in emails (calcom#9409)
Browse files Browse the repository at this point in the history
  • Loading branch information
zomars committed Jun 7, 2023
1 parent 62ec3de commit 0ec3c49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/emails/src/templates/VerifyAccountEmail.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -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>
Expand Down
8 changes: 5 additions & 3 deletions packages/emails/templates/account-verify-email.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -14,7 +14,6 @@ export type EmailVerifyLink = {
verificationEmailLink: string;
};


export default class AccountVerifyEmail extends BaseEmail {
verifyAccountInput: EmailVerifyLink;

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

0 comments on commit 0ec3c49

Please sign in to comment.