summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/operation.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/operation.ml b/lib/operation.ml
index 2e681f8..911c409 100644
--- a/lib/operation.ml
+++ b/lib/operation.ml
@@ -51,7 +51,7 @@ let decoder : transaction_op Utils.Decoder.decoder =
<|> literal "d" *> return (fun p -> `Debit p)
in
(fun value transaction_type description -> transaction_type { value; description })
- <$> ("valor" <: (int >>= fun x -> if x >= 0 then return x else fail))
+ <$> ("valor" <: (int >>= fun x -> if x >= 1 then return x else fail))
<*> ("tipo" <: transaction_type_decoder)
<*> ("descricao"
<: (string