diff --git a/apps/web/process/insurance/reactions.ts b/apps/web/process/insurance/reactions.ts index 07455b8..bdda8e3 100644 --- a/apps/web/process/insurance/reactions.ts +++ b/apps/web/process/insurance/reactions.ts @@ -305,8 +305,8 @@ export function common({ store, apolloClient }: ProcessContext) { ); reaction( - () => $calculation.$values.getValues(['leaseObjectType', 'maxMass']), - async ({ leaseObjectType: leaseObjectTypeId, maxMass }) => { + () => $calculation.$values.getValues(['leaseObjectType', 'maxSpeed']), + async ({ leaseObjectType: leaseObjectTypeId, maxSpeed }) => { if (!leaseObjectTypeId) { $tables.insurance.row('osago').column('insuranceCompany').unblock(); $tables.insurance.row('osago').column('insured').unblock(); @@ -330,7 +330,7 @@ export function common({ store, apolloClient }: ProcessContext) { query: CRMTypes.GetInsuranceCompaniesDocument, }); - if (evo_leasingobject_type?.evo_id === '9' && maxMass < 20) { + if (evo_leasingobject_type?.evo_id === '9' && maxSpeed < 20) { const otherInsuranceCompany = accounts?.find( (x) => x?.evo_type_ins_policy === null && x.label?.includes('ПРОЧИЕ') );