clear error messages on order and bill address on first load

This commit is contained in:
Andy Brett
2021-08-20 08:36:01 -07:00
parent 26c5361b0a
commit 3bee30ac60

View File

@@ -25,6 +25,8 @@ class SplitCheckoutController < ::BaseController
# a version of paypal that uses this controller, and more specifically
# the #action_failed method, then we can remove this call
# OrderCheckoutRestart.new(@order).call
@order.errors.clear
@order.bill_address.errors.clear
rescue Spree::Core::GatewayError => e
rescue_from_spree_gateway_error(e)
end