[bug] fix missing translations for mailer

This commit is contained in:
Andrea 2021-12-13 20:53:56 +01:00
parent 3b202e5f85
commit 8a53ca31f0
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ const sendEmail = (to, subject, body = undefined, html = undefined) => {
});
};
const terms = translations.terms.content.content.violations + ' ' + Object.values(translations.terms.content.content.violationsExamples).join(', ');
const terms = translations.terms ? (translations.terms.content.content.violations + ' ' + Object.values(translations.terms.content.content.violationsExamples).join(', ')) : '';
const templates = {
base: {