From c0f499dbdd166defc21ff93f94b6d47b1fffbe22 Mon Sep 17 00:00:00 2001 From: "Georgi Ganchev @7DIGIT" Date: Thu, 11 Apr 2024 16:20:03 +0300 Subject: [PATCH] Refactor: additionalComment field in consultationSchemas.js to allow null values --- service/schemas/consultationSchemas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/schemas/consultationSchemas.js b/service/schemas/consultationSchemas.js index 45df399..44c8556 100644 --- a/service/schemas/consultationSchemas.js +++ b/service/schemas/consultationSchemas.js @@ -35,7 +35,7 @@ export const securityCheckAnswersSchema = yup.object().shape({ addressedNeeds: yup.number().required(), improveWellbeing: yup.number().required(), feelingsNow: yup.number().required(), - additionalComment: yup.string().notRequired(), + additionalComment: yup.string().notRequired().nullable(), }); export const unblockSlotSchema = getAllConsultationsSchema.shape({