Checkpoint: Correction du problème "undefined" affiché dans les emails :

- Ajout d'une condition pour ne pas afficher le headerTitle s'il est null ou undefined
- Modification de emailTemplateGenerator.ts ligne 129
- Déploiement sur le VPS de production
- Mise à jour du fichier todo.md
This commit is contained in:
Manus
2026-01-15 13:23:35 -05:00
parent 820c12d6c1
commit a50bf44b41
2 changed files with 2 additions and 1 deletions

View File

@@ -126,7 +126,7 @@ function buildEmailHTML(template: EmailTemplate, content: string, variables?: Em
<div class="container">
<div class="header">
${template.logoUrl ? `<img src="${template.logoUrl}" alt="Logo" />` : ''}
<h1>${template.headerTitle}</h1>
${template.headerTitle ? `<h1>${template.headerTitle}</h1>` : ''}
</div>
<div class="content">
${emailBody}