Skip to content

Commit

Permalink
fix: lower description min to 20 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
fmorency committed Jan 7, 2025
1 parent 08bbe76 commit 6d2a56a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/groups/modals/updateGroupModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ export function UpdateGroupModal({
.optional(),
description: Yup.string()
.noProfanity('Profanity is not allowed')
.min(50, 'Description must be at least 50 characters')
.min(20, 'Description must be at least 20 characters')
.max(100, 'Description must not exceed 100 characters')
.optional(),
threshold: Yup.number().min(1, 'Threshold must be at least 1').optional(),
Expand Down Expand Up @@ -283,9 +283,9 @@ export function UpdateGroupModal({
'Total metadata length must not exceed 255 characters',
function (values) {
const metadata = JSON.stringify({
title: values.name || '',
authors: values.authors || '',
details: values.description || '',
title: values.name ?? '',
authors: values.authors ?? '',
details: values.description ?? '',
});
return metadata.length <= 255;
}
Expand Down

0 comments on commit 6d2a56a

Please sign in to comment.