mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-23 14:15:33 +03:00
Add minimum value for shopping cart quantity.
This commit is contained in:
parent
6987e25e71
commit
75b487f204
@ -172,6 +172,7 @@ setQuantityForm =
|
||||
(quantityInCart + toQuantity quantityChange)
|
||||
|> Form.Value.int
|
||||
)
|
||||
|> Field.withMin (Form.Value.int 0) "Must be 0 or more"
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user