From bc8eda5eb86a35a5f2c7891fe993ae0aaec6882e Mon Sep 17 00:00:00 2001
From: NotII <46204250+NotII@users.noreply.github.com>
Date: Mon, 9 Jun 2025 21:56:08 +0100
Subject: [PATCH] Update product-modal.tsx
---
components/modals/product-modal.tsx | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/components/modals/product-modal.tsx b/components/modals/product-modal.tsx
index af90f46..94f4feb 100644
--- a/components/modals/product-modal.tsx
+++ b/components/modals/product-modal.tsx
@@ -282,7 +282,7 @@ const ProductBasicInfo: React.FC<{
name="lowStockThreshold"
type="number"
min="1"
- step={productData.unitType === 'gr' ? '0.1' : '1'}
+ step={productData.unitType === 'gr' || productData.unitType === 'ml' ? '0.1' : '1'}
value={productData.lowStockThreshold || 10}
onChange={handleChange}
placeholder="10"
@@ -297,7 +297,7 @@ const ProductBasicInfo: React.FC<{
name="currentStock"
type="number"
min="0"
- step={productData.unitType === 'gr' ? '0.1' : '1'}
+ step={productData.unitType === 'gr' || productData.unitType === 'ml' ? '0.1' : '1'}
value={productData.currentStock || 0}
onChange={handleChange}
placeholder="0"
@@ -424,6 +424,7 @@ const UnitTypeSelect: React.FC<{
Pieces (pcs)
Grams (gr)
Kilograms (kg)
+ Milliliters (ml)