From e3329ffcb4053ca1db1395fe892da7434250b608 Mon Sep 17 00:00:00 2001 From: Chisom Chima <87203527+Chisomchima@users.noreply.github.com> Date: Thu, 28 Nov 2024 16:08:10 +0100 Subject: [PATCH] feat: implement description field validation (#449) * feat: add description validation * fix: check max length for description --- src/components/form/fields/DescriptionField.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/form/fields/DescriptionField.tsx b/src/components/form/fields/DescriptionField.tsx index 4cd08751..629ad075 100644 --- a/src/components/form/fields/DescriptionField.tsx +++ b/src/components/form/fields/DescriptionField.tsx @@ -11,7 +11,10 @@ export function DescriptionField({ helpText?: string schemaSection: SchemaSection }) { - const validate = useCheckMaxLengthFromSchema(schemaSection.name, 'formName') + const validate = useCheckMaxLengthFromSchema( + schemaSection.name, + 'description' + ) return (