From c930b2ee6019ac8d414dc08517998bd49ee6b935 Mon Sep 17 00:00:00 2001 From: Nihal Mohammed Date: Thu, 13 May 2021 03:45:28 +0530 Subject: [PATCH] Fix persistet flash after /cart page reload --- app/controllers/spree/orders_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/spree/orders_controller.rb b/app/controllers/spree/orders_controller.rb index 51bacbb588..6876c63775 100644 --- a/app/controllers/spree/orders_controller.rb +++ b/app/controllers/spree/orders_controller.rb @@ -68,7 +68,7 @@ module Spree associate_user if @order.insufficient_stock_lines.present? || @unavailable_order_variants.present? - flash[:error] = t("spree.orders.error_flash_for_unavailable_items") + flash.now[:error] = t("spree.orders.error_flash_for_unavailable_items") end end end