diff --git a/app/models/spree/stock_item.rb b/app/models/spree/stock_item.rb index 29ec2401fa..5c9f390567 100644 --- a/app/models/spree/stock_item.rb +++ b/app/models/spree/stock_item.rb @@ -31,7 +31,7 @@ module Spree end def in_stock? - count_on_hand > 0 + count_on_hand.positive? end # Tells whether it's available to be included in a shipment