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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user