Skip to content

Commit

Permalink
fix: trim extra spaces in objective form (#1909)
Browse files Browse the repository at this point in the history
  • Loading branch information
arturlg authored and jonat75 committed Dec 12, 2023
1 parent 8ceda6c commit b603734
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export const objectifValidator = (originValue: number, max: number, calculable =
.string({
required_error,
})
.trim()
.min(1, { message: required_error })
.max(300, { message: "L'objectif doit être un texte de 300 caractères max." });

Expand Down

0 comments on commit b603734

Please sign in to comment.