Use flash.now unless redirecting

This commit is contained in:
Matt-Yorkley
2021-08-12 12:01:58 +01:00
parent dbefd95b5e
commit 41c62b97d5

View File

@@ -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