Skip to content

Commit 19fdcb2

Browse files
committed
hide 0 hour count on featured items
1 parent e2373eb commit 19fdcb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/views/shop/_banner.html.erb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@
99
<div class="shop__banner-item-desc">
1010
<h4><%= featured_item.name %></h4>
1111
<h5><%= featured_item.description %></h5>
12-
<h6>~<%= featured_item.hours_estimated %> hours</h6>
12+
<% if featured_item.hours_estimated > 0 %>
13+
<h6>~<%= featured_item.hours_estimated %> hours</h6>
14+
<% end %>
1315

1416
<%= render ButtonComponent.new(
1517
text: "Order #{featured_item.name}",

0 commit comments

Comments
 (0)