From cf0fb9289dfbc1cd13014f84bf7ab714abd21aa7 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sun, 7 Jan 2024 19:58:01 +0100 Subject: [PATCH] :bug: Fixed requiring 2 answers for text mode --- frontend/src/lib/yupSchemas.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/yupSchemas.ts b/frontend/src/lib/yupSchemas.ts index 160ec05..a6c51da 100644 --- a/frontend/src/lib/yupSchemas.ts +++ b/frontend/src/lib/yupSchemas.ts @@ -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({