Add minimum value for shopping cart quantity.

This commit is contained in:
Dillon Kearns 2022-08-01 09:29:52 +02:00
parent 6987e25e71
commit 75b487f204

View File

@ -172,6 +172,7 @@ setQuantityForm =
(quantityInCart + toQuantity quantityChange)
|> Form.Value.int
)
|> Field.withMin (Form.Value.int 0) "Must be 0 or more"
)