From 7b2fe39b42594e16501f9b290f3d8609c73981f9 Mon Sep 17 00:00:00 2001 From: Rafael Taranto Date: Fri, 21 Mar 2025 18:30:48 +0000 Subject: [PATCH] fix: update yup usage on custom info requests --- .../Triggers/CustomInfoRequests/Forms/TypeFields/index.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/TypeFields/index.jsx b/new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/TypeFields/index.jsx index a8d15192..3c608e8c 100644 --- a/new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/TypeFields/index.jsx +++ b/new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/TypeFields/index.jsx @@ -45,7 +45,7 @@ const validationSchema = Yup.lazy(values => { is: 'length', then: schema => schema.min(0).required('The number of digits is required'), - otherwise: schema => schema.mixed().notRequired() + otherwise: schema => schema.notRequired() }) }) case 'text': @@ -55,7 +55,7 @@ const validationSchema = Yup.lazy(values => { inputLabel2: Yup.string().when('constraintType', { is: 'spaceSeparation', then: schema => schema.label('Second word label').required(), - otherwise: schema => schema.mixed().notRequired() + otherwise: schema => schema.notRequired() }) }) case 'choiceList':