Skip to content

Commit

Permalink
Revert positive?
Browse files Browse the repository at this point in the history
  • Loading branch information
futhr committed Feb 3, 2017
1 parent 6eba88e commit 82c7463
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/spree/calculator/shipping/postal_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def compute(package)

def compute_total_weight
line_items.map do |item|
weight = item.variant.weight.positive? ? item.variant.weight : preferred_default_weight
weight = item.variant.weight > 0 ? item.variant.weight : preferred_default_weight
item.quantity * weight
end.reduce(:+)
end
Expand Down

0 comments on commit 82c7463

Please sign in to comment.