Skip to content

Commit

Permalink
fix: more forgiving event page date comparison (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen authored Jan 25, 2024
1 parent b280507 commit 4dad87a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotcom_web/templates/event/_event_teaser.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
path_fn = fn -> cms_static_page_path(@conn, @event_teaser.path) end
event_is_hidden = if @check_event_ended do
Date.compare(@conn.assigns.date, @event_teaser.date) != :lt
Date.compare(@conn.assigns.date, @event_teaser.date) == :gt
else
false
end
Expand Down

0 comments on commit 4dad87a

Please sign in to comment.