Skip to content

Commit

Permalink
[TM-1402] Make the min for tree species 0.
Browse files Browse the repository at this point in the history
  • Loading branch information
roguenet committed Dec 16, 2024
1 parent f4cc037 commit 0623131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/customForms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,7 @@ const getFieldValidation = (question: FormQuestionRead, t: typeof useT, framewor
const arrayItemShape = question.with_numbers
? yup.object({
name: yup.string().required(),
amount: yup.number().min(1).required()
amount: yup.number().min(0).required()
})
: yup.object({
name: yup.string().required()
Expand Down

0 comments on commit 0623131

Please sign in to comment.