fix prev commit

This commit is contained in:
Chika 2022-11-18 16:04:44 +03:00
parent 06948084b1
commit ba55dc7b37

View File

@ -881,9 +881,24 @@ export default [
)({
insuranceCompany: {
filter: leasingWithoutKasko
? pipe(
insuranceOsagoDefaultFilter,
options => options.evo_evokasko_access === true,
? options =>
options.filter(
pipe(
x => {
if (
x.evo_type_ins_policy &&
x.evo_type_ins_policy.includes(100000001)
) {
return x;
}
},
x => {
if (x?.evo_evokasko_access === true) {
return x;
}
},
),
)
: insuranceOsagoDefaultFilter,
value: isTrailer ? null : undefined,