Do not redirect to /guest if step is specified

This commit is contained in:
Jean-Baptiste Bellet
2022-01-06 15:33:20 +01:00
parent b6e8862401
commit 9a74934f79

View File

@@ -94,7 +94,7 @@ class SplitCheckoutController < ::BaseController
end
def redirect_to_step
return redirect_to_guest unless spree_current_user
return redirect_to_guest if !spree_current_user && !params[:step]
case @order.state
when "cart", "address", "delivery"