We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b362a9 commit f4bf3fcCopy full SHA for f4bf3fc
app/views/widgets/hours/todays_hours.html.erb
@@ -9,7 +9,10 @@
9
<h2><%= day.today? ? 'Today' : day.strftime("%A") %>:
10
<%= raw "#{value["formatted_hours"].split('<br>').first.html_safe}" %>
11
</h2>
12
- <p class="limited-hours-info"><%= raw "#{value["formatted_hours"].split('<br>').second.html_safe}" %></p>
+ <% hours_info = value["formatted_hours"].split('<br>').second %>
13
+ <% if hours_info.present? %>
14
+ <p class="limited-hours-info"><%= raw "#{hours_info.try(:html_safe)}" %></p>
15
+ <% end %>
16
<% else %>
17
18
<%= raw "#{value["formatted_hours"].html_safe}" %></h2>
0 commit comments