Skip to content

Commit

Permalink
fix: trim extra spaces in objective form
Browse files Browse the repository at this point in the history
  • Loading branch information
arturlg committed Dec 7, 2023
1 parent 7bbbfa3 commit 84e2f38
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 84e2f38

Please sign in to comment.