Fix ArgumentError in mailers when a user's timezone is blank (#26025)

This commit is contained in:
Claire
2023-07-17 12:10:50 +02:00
committed by GitHub
parent 97ce47e451
commit c667fc5a4a
8 changed files with 8 additions and 8 deletions

View File

@@ -58,7 +58,7 @@
- unless @statuses.empty?
- @statuses.each_with_index do |status, i|
= render 'notification_mailer/status', status: status, i: i + 1, highlighted: true, time_zone: @resource.time_zone
= render 'notification_mailer/status', status: status, i: i + 1, highlighted: true, time_zone: @resource.time_zone.presence
%table.email-table{ cellspacing: 0, cellpadding: 0 }
%tbody