Third time's the charm right :-) Pesky compact! nil bug.

This commit is contained in:
reaper 2011-01-06 23:54:06 +09:00
parent 7b43b73f58
commit 8800abf9bb
1 changed files with 2 additions and 2 deletions

View File

@ -239,8 +239,8 @@ module Spree::PaypalExpress
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