aboutsummaryrefslogtreecommitdiff
path: root/src/client/Model
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-08-14 17:43:10 +0200
committerJoris Guyonvarch2015-08-14 17:43:10 +0200
commit965c0f57875e27fd09df2fc72487f4651addb79b (patch)
tree3123597112e990fe06405557485e664d3a8da5f3 /src/client/Model
parent006d54bf4ac4dd9e05d62d0007759f28740fd77a (diff)
Cost must not be negative
Diffstat (limited to 'src/client/Model')
-rw-r--r--src/client/Model/View/Payment/Add.elm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Model/View/Payment/Add.elm b/src/client/Model/View/Payment/Add.elm
index 5428c3d..5ab7a40 100644
--- a/src/client/Model/View/Payment/Add.elm
+++ b/src/client/Model/View/Payment/Add.elm
@@ -35,4 +35,4 @@ validateCost : String -> Translations -> Result String Int
validateCost cost translations =
cost
|> validateNonEmpty (getMessage "CostRequired" translations)
- |> flip Result.andThen (validateNumber (getMessage "CostMustBeNumber" translations))
+ |> flip Result.andThen (validateNumber (getMessage "CostMustBeNumber" translations) (\number -> number >= 0))