From 3bee30ac605c7eb1298cf925c925cf51c1cc27b6 Mon Sep 17 00:00:00 2001 From: Andy Brett Date: Fri, 20 Aug 2021 08:36:01 -0700 Subject: [PATCH] clear error messages on order and bill address on first load --- app/controllers/split_checkout_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/split_checkout_controller.rb b/app/controllers/split_checkout_controller.rb index b8e8886e13..dab87cc9aa 100644 --- a/app/controllers/split_checkout_controller.rb +++ b/app/controllers/split_checkout_controller.rb @@ -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