Restart checkout flow on cart empty if state of checkout is payment

This commit is contained in:
georgethoppil
2022-05-19 20:54:25 -04:00
parent 03b24bfc38
commit ec7d4b7c21

View File

@@ -433,6 +433,7 @@ module Spree
all_adjustments.destroy_all
payments.clear
shipments.destroy_all
restart_checkout_flow if state == "payment"
end
def state_changed(name)