Skip to content

Commit

Permalink
fix: add 255 char validation
Browse files Browse the repository at this point in the history
  • Loading branch information
g-saracca committed Feb 10, 2025
1 parent 3b83fb3 commit 94c8cec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export const TopFieldsSection = ({ isEditingRootCollection }: TopFieldsSectionPr
const nameRules: UseControllerProps['rules'] = {
required: t('fields.name.required'),
maxLength: {
value: 120,
message: t('fields.name.invalid.maxLength', { maxLength: 120 })
value: 255,
message: t('fields.name.invalid.maxLength', { maxLength: 255 })
}
}

const affiliationRules: UseControllerProps['rules'] = {
maxLength: {
value: 120,
message: t('fields.affiliation.invalid.maxLength', { maxLength: 120 })
value: 255,
message: t('fields.affiliation.invalid.maxLength', { maxLength: 255 })
}
}

Expand Down

0 comments on commit 94c8cec

Please sign in to comment.