Skip to content

Commit

Permalink
Third time's the charm right :-) Pesky compact! nil bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
reaper committed Jan 6, 2011
1 parent 7b43b73 commit 8800abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spree/paypal_express.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ def order_opts(order, payment_method, stage)
end

credits_total = 0
if credits.respond_to? :compact
items.concat credits.compact!
if credits.compact!
items.concat credits
credits_total = credits.map {|i| i[:amount] * i[:qty] }.sum
end

Expand Down

0 comments on commit 8800abf

Please sign in to comment.