diff --git a/src/entities/Proposal/types.ts b/src/entities/Proposal/types.ts index 9bd6cc879..e134cbda3 100644 --- a/src/entities/Proposal/types.ts +++ b/src/entities/Proposal/types.ts @@ -274,7 +274,7 @@ export const newProposalDraftScheme = { }, title: { type: 'string', - minLength: 1, + minLength: 5, maxLength: 80, }, summary: { @@ -341,7 +341,7 @@ export const newProposalGovernanceScheme = { }, title: { type: 'string', - minLength: 1, + minLength: 5, maxLength: 80, }, summary: { diff --git a/src/pages/submit/draft.tsx b/src/pages/submit/draft.tsx index 25771d2e4..cba16278e 100644 --- a/src/pages/submit/draft.tsx +++ b/src/pages/submit/draft.tsx @@ -137,8 +137,8 @@ export default function SubmitDraftProposal() { name="title" rules={{ required: { value: true, message: t('error.draft.title_empty') }, - min: { value: schema.title.minLength, message: t('error.draft.title_too_short') }, - max: { value: schema.title.maxLength, message: t('error.draft.title_too_long') }, + minLength: { value: schema.title.minLength, message: t('error.draft.title_too_short') }, + maxLength: { value: schema.title.maxLength, message: t('error.draft.title_too_large') }, }} error={!!errors.title} loading={isLoadingVpDistribution}