validation: fix isNotTrailer detection
This commit is contained in:
parent
d8e599dc20
commit
b5e24111fa
@ -107,7 +107,7 @@ export function createValidationSchema({ apolloClient }: ValidationContext) {
|
||||
const isNotTrailer =
|
||||
evo_leasingobject_type?.evo_id !== null &&
|
||||
evo_leasingobject_type?.evo_id !== '8' &&
|
||||
evo_model?.evo_trailer_sign === true;
|
||||
evo_model?.evo_trailer_sign !== true;
|
||||
|
||||
if (isNotTrailer && engineType !== 100_000_003 && engineVolume <= 0) {
|
||||
ctx.addIssue({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user