Skip to content

Commit

Permalink
feat: simulation edit error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jonat75 committed Nov 21, 2023
1 parent ca98036 commit b39e9a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { RemunerationsMode } from "../domain/valueObjects/declaration/indicators

const nonnegativeNanSafe = zodFr
.number()
.nonnegative()
.nonnegative({ message: "Le nombre ne peut pas être inférieur à 0" })
.default(0)
.transform(v => (isNaN(v) ? 0 : v));

Expand Down

0 comments on commit b39e9a7

Please sign in to comment.