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)