diff --git a/src/components/admin/documents/Form.tsx b/src/components/admin/documents/Form.tsx index 1c77ee3e9..f77bcbeb5 100644 --- a/src/components/admin/documents/Form.tsx +++ b/src/components/admin/documents/Form.tsx @@ -23,7 +23,7 @@ const validationSchema = yup .object() .defined() .shape({ - type: yup.string().oneOf(validDocumentTypes).required(), + type: yup.string().oneOf(validDocumentTypes, `Видът трябва да бъде една от следните стойности: ${validDocumentTypes.join(', ')}.s`).required(), name: yup.string().trim().min(2).max(20).required(), filename: yup.string().trim().min(2).max(20).required(), filetype: yup.string().trim().max(3),