Skip to content

Commit

Permalink
use ternary operator instead of if else block
Browse files Browse the repository at this point in the history
  • Loading branch information
chukitow committed Oct 28, 2016
1 parent 748ceb9 commit 8b83ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/views/spree/products/_cart_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<% end %>

<% if @product.price_for(current_pricing_options) and !@product.price.nil? %>
<div data-hook="product_price" class="columns five <% if !@product.has_variants? %> alpha <% else %> omega <% end %>">
<div data-hook="product_price" class="columns five <%= !@product.has_variants? ? 'alpha' : 'omega' %>">

<div id="product-price">
<h6 class="product-section-title"><%= Spree.t(:price) %></h6>
Expand Down

0 comments on commit 8b83ebb

Please sign in to comment.