From 5bd2771af64027bfbb7918fe464386ae45b0d29b Mon Sep 17 00:00:00 2001 From: Jaydeep Dave Date: Mon, 27 Oct 2025 18:58:06 +0530 Subject: [PATCH] Update error message for required fields in product addition --- client/src/components/products/Products.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/products/Products.js b/client/src/components/products/Products.js index 26cbfd0..f8c8432 100644 --- a/client/src/components/products/Products.js +++ b/client/src/components/products/Products.js @@ -30,7 +30,7 @@ function Products({ products, loading, fetchProducts, fetchAnalytics }) { const handleAddProduct = async (e) => { e.preventDefault(); if (!newProduct.name || !newProduct.price || !newProduct.category) { - toast.error('Please fill in all required fields: name, price, and category'); + toast.error('Please fill in all required fields'); return; } try {