diff --git a/app/controllers/spree/admin/promotion_batches_controller.rb b/app/controllers/spree/admin/promotion_batches_controller.rb index 9161d4fdb2..3bf72c6876 100644 --- a/app/controllers/spree/admin/promotion_batches_controller.rb +++ b/app/controllers/spree/admin/promotion_batches_controller.rb @@ -18,7 +18,7 @@ def csv_export def csv_import content = params[:file]&.read.to_s Spree::PromotionBatches::PromoCodesImporter.new(content: content, promotion_batch_id: params[:id]).call - redirect_back fallback_location: admin_promotions_path, notice: "Promo codes uploaded" + redirect_back fallback_location: admin_promotions_path, notice: "Promo codes are being uploaded" rescue Spree::PromotionBatches::PromoCodesImporter::Error => e redirect_back fallback_location: admin_promotions_path, alert: e.message end