Skip to content

Commit

Permalink
Merge pull request #1562 from chukitow/improvement/use-ternary-operator
Browse files Browse the repository at this point in the history
use ternary operator instead of if else block
  • Loading branch information
jhawthorn authored Oct 28, 2016
2 parents 036ad1b + 8b83ebb commit 759e10c
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 759e10c

Please sign in to comment.