diff --git a/src/app/actions/definitions.ts b/src/app/actions/definitions.ts index 9f15afd..1ac991c 100644 --- a/src/app/actions/definitions.ts +++ b/src/app/actions/definitions.ts @@ -88,7 +88,7 @@ export const createComplaintSchema = z .object({ textArea: z .string() - .min(6, { error: 'text-area-error-fill-complaint-text' }) + .min(1, { error: 'text-area-error-fill-complaint-text' }) .max(2000, {error: 'text-area-error-complaint-text-too-long'}) .trim(), }) @@ -97,12 +97,12 @@ export const createCaseSchema = z .object({ textArea: z .string() - .min(6, { error: 'fill-text-of-the-case' }) + .min(1, { error: 'fill-text-of-the-case' }) .max(2000, {error: 'claim-text-must-not-exceed-2000-characters'}) .trim(), caseTitle: z .string() - .min(6, { error: 'fill-title-of-the-case' }) + .min(1, { error: 'fill-title-of-the-case' }) .max(300, {error: 'claim-title-must-not-exceed-300-characters'}) .trim(), })