Skip to content

Commit 5bd2771

Browse files
committed
Update error message for required fields in product addition
1 parent 980204f commit 5bd2771

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/components/products/Products.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function Products({ products, loading, fetchProducts, fetchAnalytics }) {
3030
const handleAddProduct = async (e) => {
3131
e.preventDefault();
3232
if (!newProduct.name || !newProduct.price || !newProduct.category) {
33-
toast.error('Please fill in all required fields: name, price, and category');
33+
toast.error('Please fill in all required fields');
3434
return;
3535
}
3636
try {

0 commit comments

Comments
 (0)