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