From 8a53ca31f086342f5da3b0f91ec7992cd33e7872 Mon Sep 17 00:00:00 2001 From: Andrea Date: Mon, 13 Dec 2021 20:53:56 +0100 Subject: [PATCH] [bug] fix missing translations for mailer --- src/mailer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mailer.js b/src/mailer.js index cbae9fa9..ea99252c 100644 --- a/src/mailer.js +++ b/src/mailer.js @@ -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: {