From 67d19ff474a4735d5996a66dd50f2a170a98b6d8 Mon Sep 17 00:00:00 2001 From: ledouxm Date: Thu, 25 Jul 2024 09:50:43 +0200 Subject: [PATCH] fix: mail subject if title is existing --- packages/backend/src/features/mail.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/features/mail.ts b/packages/backend/src/features/mail.ts index d8705e9e..8c106f6c 100644 --- a/packages/backend/src/features/mail.ts +++ b/packages/backend/src/features/mail.ts @@ -24,7 +24,7 @@ export const sendReportMail = ({ return transporter.sendMail({ from: ENV.EMAIL_EMITTER, to: recipients, - subject: "Compte-rendu UDAP : " + (report?.title ? ` : ${report.title}` : ""), + subject: "Compte-rendu UDAP" + (report?.title ? ` : ${report.title}` : ""), text: `Bonjour, vous trouverez ci-joint le compte-rendu de notre rendez-vous.