diff --git a/app/views/announcements/index.html.erb b/app/views/announcements/index.html.erb index 46cab046d..86473ed1f 100644 --- a/app/views/announcements/index.html.erb +++ b/app/views/announcements/index.html.erb @@ -6,8 +6,8 @@
  • <%= announcement.name %>

    - <%= announcement.description.truncate(100) %> - <%= link_to("More [*]", announcement_path(announcement)) if announcement.description.length > 100 %> + <%= announcement.description&.truncate(100) %> + <%= link_to("More [*]", announcement_path(announcement)) if announcement.description&.length.to_i > 100 %>

    <% if policy(announcement).change? %>