diff options
Diffstat (limited to 'src/client/Model')
-rw-r--r-- | src/client/Model/View/LoggedIn/Add.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Model/View/LoggedIn/Add.elm b/src/client/Model/View/LoggedIn/Add.elm index abd8a4d..5598084 100644 --- a/src/client/Model/View/LoggedIn/Add.elm +++ b/src/client/Model/View/LoggedIn/Add.elm @@ -38,6 +38,6 @@ validateCost : String -> Translations -> Result String Int validateCost cost translations = cost |> validateNonEmpty (getMessage "CostRequired" translations) - |> flip Result.andThen (validateNumber (getMessage "CostMustBeNumber" translations) (\number -> number >= 0)) + |> flip Result.andThen (validateNumber (getMessage "CostMustBeNonNullNumber" translations) ((/=) 0)) type Frequency = Punctual | Monthly |