From 2b034d780d57dee11a50170a3de19c445c9dbd5a Mon Sep 17 00:00:00 2001
From: Carlos Fructuoso
Date: Wed, 15 Jun 2022 08:59:10 +0100
Subject: [PATCH] Add a validation condition to show the reason if it is
filled.
---
content/email_templates/mentorship-declined.html | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/content/email_templates/mentorship-declined.html b/content/email_templates/mentorship-declined.html
index 76f64d2..68741a0 100644
--- a/content/email_templates/mentorship-declined.html
+++ b/content/email_templates/mentorship-declined.html
@@ -40,11 +40,15 @@
<%= mentorName %>
was not accepted.
-
- They provided the reason below, which we hope will help you find your next
- mentor:
-
- <%= reason %>
+
+ <% if (reason) { %>
+
+ They provided the reason below, which we hope will help you find your next
+ mentor:
+
+ <%= reason %>
+ <% } %>
+
<% } %>