Commit bbd2690e authored by Martin Fahl's avatar Martin Fahl

avoids qunaitities < 0 in add dialog

parent d52e8dc2
......@@ -28,6 +28,7 @@ const AddDialog = ({ name, quantity, isOpen, handleClose, handleCancel, handleAd
id="quantity"
label="Quantity"
type="number"
InputProps={{ inputProps: { min: 0} }}
value={quantity}
onChange={(event) => updateQuantity(event.target.value)}
/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment