Skip to content

Commit

Permalink
feat: implement description field validation (#449)
Browse files Browse the repository at this point in the history
* feat: add description validation

* fix: check max length for description
  • Loading branch information
Chisomchima authored Nov 28, 2024
1 parent 3c78f90 commit e3329ff
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/form/fields/DescriptionField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export function DescriptionField({
helpText?: string
schemaSection: SchemaSection
}) {
const validate = useCheckMaxLengthFromSchema(schemaSection.name, 'formName')
const validate = useCheckMaxLengthFromSchema(
schemaSection.name,
'description'
)

return (
<FieldRFF
Expand Down

0 comments on commit e3329ff

Please sign in to comment.