diff --git a/app/helpers/i18n_helper.rb b/app/helpers/i18n_helper.rb index 1b56ebe..fa39abe 100644 --- a/app/helpers/i18n_helper.rb +++ b/app/helpers/i18n_helper.rb @@ -32,6 +32,7 @@ module I18nHelper end def date(date, format = :long) + return '' unless date.present? I18n.l(date.is_a?(String) ? Date.parse(date) : date, format: format) end