fix selectDealerPerson validation
This commit is contained in:
parent
f35acee64b
commit
2c9a2bd30c
@ -508,11 +508,11 @@ export function createValidationSchema(context: ValidationContext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
(dealer_person?.evo_legal_form === 100_000_004 &&
|
dealer_person?.evo_legal_form === 100_000_004 &&
|
||||||
((await isAgentEqualsToDealerPerson(indAgent)) ||
|
((await isAgentEqualsToDealerPerson(indAgent)) ||
|
||||||
(await isAgentEqualsToDealerPerson(calcDoubleAgent)))) ||
|
(await isAgentEqualsToDealerPerson(calcDoubleAgent)) ||
|
||||||
(await isAgentEqualsToDealerPerson(calcBroker)) ||
|
(await isAgentEqualsToDealerPerson(calcBroker)) ||
|
||||||
(await isAgentEqualsToDealerPerson(calcFinDepartment))
|
(await isAgentEqualsToDealerPerson(calcFinDepartment)))
|
||||||
) {
|
) {
|
||||||
ctx.addIssue({
|
ctx.addIssue({
|
||||||
code: z.ZodIssueCode.custom,
|
code: z.ZodIssueCode.custom,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user