Skip to content

Commit

Permalink
fix frontend product partial nil price ternary operator bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bhtabor authored and damianlegawiec committed Jul 25, 2020
1 parent d4895b4 commit 08bcf15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/views/spree/products/_product.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<% end %>
</div>
<div class="card-footer text-center">
<span class="price selling lead" content="<%= price.nil? 0 : price.to_d %>">
<span class="price selling lead" content="<%= price.nil? ? 0 : price.to_d %>">
<%= display_price(product) %>
</span>
<span content="<%= current_currency %>"></span>
Expand Down

0 comments on commit 08bcf15

Please sign in to comment.