fix complaint/claims validation

This commit is contained in:
smanylov
2026-04-30 12:06:31 +07:00
parent 34772bd3b4
commit 455b39bb1e
+3 -3
View File
@@ -88,7 +88,7 @@ export const createComplaintSchema = z
.object({ .object({
textArea: z textArea: z
.string() .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'}) .max(2000, {error: 'text-area-error-complaint-text-too-long'})
.trim(), .trim(),
}) })
@@ -97,12 +97,12 @@ export const createCaseSchema = z
.object({ .object({
textArea: z textArea: z
.string() .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'}) .max(2000, {error: 'claim-text-must-not-exceed-2000-characters'})
.trim(), .trim(),
caseTitle: z caseTitle: z
.string() .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'}) .max(300, {error: 'claim-title-must-not-exceed-300-characters'})
.trim(), .trim(),
}) })