Skip to content

Commit

Permalink
fix: org character limit (#783)
Browse files Browse the repository at this point in the history
Signed-off-by: pranalidhanavade <[email protected]>
  • Loading branch information
pranalidhanavade authored Oct 11, 2024
1 parent 2e7385d commit fee0f57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/CreateOrgModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,13 @@ const CreateOrgModal = (props: IProps) => {
name: yup
.string()
.min(2, 'Organization name must be at least 2 characters')
.max(50, 'Organization name must be at most 50 characters')
.max(200, 'Organization name must be at most 200 characters')
.required('Organization name is required')
.trim(),
description: yup
.string()
.min(2, 'Description must be at least 2 characters')
.max(255, 'Description must be at most 255 characters')
.max(1000, 'Description must be at most 1000 characters')
.required('Description is required'),
};

Expand Down
4 changes: 2 additions & 2 deletions src/components/organization/EditOrgdetailsModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {
name: yup
.string()
.min(2, 'Organization name must be at least 2 characters')
.max(50, 'Organization name must be at most 50 characters')
.max(200, 'Organization name must be at most 200 characters')
.required('Organization name is required')
.trim(),
description: yup
.string()
.min(2, 'Description must be at least 2 characters')
.max(255, 'Description must be at most 255 characters')
.max(1000, 'Description must be at most 1000 characters')
.required('Description is required'),
})}
validateOnBlur
Expand Down

0 comments on commit fee0f57

Please sign in to comment.