From e7eca161c7434aca0377690641f543849a741ead Mon Sep 17 00:00:00 2001 From: Jimmy Date: Tue, 23 Feb 2021 16:02:49 -0800 Subject: [PATCH] [fix] Email will not error out when logo is nil --- app/views/mailbot/email_template.erb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/mailbot/email_template.erb b/app/views/mailbot/email_template.erb index 5c64cf11..429553be 100644 --- a/app/views/mailbot/email_template.erb +++ b/app/views/mailbot/email_template.erb @@ -57,7 +57,11 @@
-
<%= image_tag(@logo, style: "display:block") %>
+
+ <% if !@logo.nil? %> + <%= image_tag(@logo, style: "display:block") %> + <% end %> +