Third time's the charm right :-) Pesky compact! nil bug.
This commit is contained in:
parent
7b43b73f58
commit
8800abf9bb
|
@ -239,8 +239,8 @@ module Spree::PaypalExpress
|
||||||
end
|
end
|
||||||
|
|
||||||
credits_total = 0
|
credits_total = 0
|
||||||
if credits.respond_to? :compact
|
if credits.compact!
|
||||||
items.concat credits.compact!
|
items.concat credits
|
||||||
credits_total = credits.map {|i| i[:amount] * i[:qty] }.sum
|
credits_total = credits.map {|i| i[:amount] * i[:qty] }.sum
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue