Skip to content

Commit

Permalink
fix: org character limit (#784)
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 fee0f57 commit d12c2c7
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 @@ -306,10 +306,10 @@ const CreateOrgModal = (props: IProps) => {
formikHandlers.setFieldValue('name', value);
formikHandlers.setFieldTouched('name', true, false);

if (value.length > 50) {
if (value.length > 200) {
formikHandlers.setFieldError(
'name',
'Organization name must be at most 50 characters'
'Organization name must be at most 200 characters'

);
}
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 @@ -253,10 +253,10 @@ const EditOrgdetailsModal = (props: EditOrgdetailsModalProps) => {
formikHandlers.setFieldValue('name', value);
formikHandlers.setFieldTouched('name', true, false);

if (value.length > 50) {
if (value.length > 200) {
formikHandlers.setFieldError(
'name',
'Organization name must be at most 50 characters',
'Organization name must be at most 200 characters',
);
}
}}
Expand Down

0 comments on commit d12c2c7

Please sign in to comment.