Skip to content

Commit

Permalink
🐛 Fixed requiring 2 answers for text mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mawoka-myblock committed Jan 7, 2024
1 parent 9ae8879 commit cf0fb92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/lib/yupSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const TextQuestionSchema = yup
answer: yup.string().required('You need an answer')
})
)
.min(2, 'You need at least 2 answers')
.min(1, 'You need at least 1 answer')
.max(16, "You can't have more than 16 answers");

export const dataSchema = yup.object({
Expand Down

0 comments on commit cf0fb92

Please sign in to comment.