We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c5e4ba commit c2fe814Copy full SHA for c2fe814
app/views/better_together/events/index.html.erb
@@ -17,13 +17,13 @@
17
</div>
18
<% end %>
19
20
- <% if @upcoming_events.any? || @past_events.any? %>
+ <% if @upcoming_events.size > 0 || @past_events.size > 0 %>
21
<h2>Upcoming</h2>
22
<div class="row">
23
<%= render(@upcoming_events) || render('none') %>
24
25
26
- <% if @past_events.any? %>
+ <% if @past_events.size > 0 %>
27
<h2>Past</h2>
28
29
<%= render(@past_events) %>
0 commit comments