Fix persistet flash after /cart page reload

This commit is contained in:
Nihal Mohammed
2021-05-13 03:45:28 +05:30
parent 4932e1dcb5
commit c930b2ee60

View File

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