🐛 Fixed requiring 2 answers for text mode

This commit is contained in:
Mawoka
2024-01-07 19:58:01 +01:00
parent 9ae88794ca
commit cf0fb9289d
+1 -1
View File
@@ -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({