Skip to content

Commit

Permalink
Update error message when creating new document (Admin)
Browse files Browse the repository at this point in the history
  • Loading branch information
ani-kalpachka committed Jul 21, 2024
1 parent 20de1ce commit 35d2a85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/admin/documents/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 35d2a85

Please sign in to comment.