From 41c62b97d521bff7e79838eeec65df02a0e4859e Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Thu, 12 Aug 2021 12:01:58 +0100 Subject: [PATCH] Use flash.now unless redirecting --- app/controllers/split_checkout_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/split_checkout_controller.rb b/app/controllers/split_checkout_controller.rb index fbd4f98837..e1c9950bef 100644 --- a/app/controllers/split_checkout_controller.rb +++ b/app/controllers/split_checkout_controller.rb @@ -54,7 +54,7 @@ class SplitCheckoutController < ::BaseController advance_order_state redirect_to_step else - flash[:error] = "Saving failed, please update the highlighted fields" + flash.now[:error] = "Saving failed, please update the highlighted fields" render :edit end end