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