diff --git a/lib/keila/mailings/send_double_opt_in_mail_worker.ex b/lib/keila/mailings/send_double_opt_in_mail_worker.ex index 65a6c6f0..c7afe411 100644 --- a/lib/keila/mailings/send_double_opt_in_mail_worker.ex +++ b/lib/keila/mailings/send_double_opt_in_mail_worker.ex @@ -57,8 +57,8 @@ defmodule Keila.Mailings.SendDoubleOptInMailWorker do default_styles = Keila.Templates.HybridTemplate.styles() styles = - if template do - Keila.Templates.Css.merge(default_styles, template.styles) + if template && is_binary(template.styles) do + Keila.Templates.Css.merge(default_styles, Keila.Templates.Css.parse!(template.styles)) else default_styles end