fix complaint/claims validation
This commit is contained in:
@@ -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(),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user