From 5d046d75cd95e60d1a2482bde2b24599a4fe11ad Mon Sep 17 00:00:00 2001 From: Laura Thiel Date: Sat, 25 Jul 2026 18:24:35 +0200 Subject: [PATCH] fix: respect product name in license emails --- emailer/src/templates.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emailer/src/templates.ts b/emailer/src/templates.ts index 202a6cc..5fe933e 100644 --- a/emailer/src/templates.ts +++ b/emailer/src/templates.ts @@ -80,8 +80,8 @@ export async function renderEmail(event: EmailEvent): Promise { }) const subject = d.isTrial - ? "Your Clave trial key" - : "Your Clave license key" + ? `Your ${d.productName} trial key` + : `Your ${d.productName} license key` const html = await render(component) const text = toPlainText(html) @@ -98,8 +98,8 @@ export async function renderEmail(event: EmailEvent): Promise { portalLink: d.portalLink, }) - const product = d.productName ? ` for ${d.productName}` : "" - const subject = `Your Clave license key has been replaced${product}` + const product = d.productName ? `for ${d.productName}` : "" + const subject = `Your license key ${product} has been replaced` const html = await render(component) const text = toPlainText(html)