From 4c28e6a6bafc7dfaec55ab707da83a1a730a5312 Mon Sep 17 00:00:00 2001 From: Chika Date: Wed, 15 Sep 2021 15:19:57 +0300 Subject: [PATCH] ELT: fix OSAGO vehiclePower --- .../Calculation/ELT/Content/Osago/lib/composeRequest.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/client/Components/Calculation/ELT/Content/Osago/lib/composeRequest.ts b/src/client/Components/Calculation/ELT/Content/Osago/lib/composeRequest.ts index d53b33f..8c11493 100644 --- a/src/client/Components/Calculation/ELT/Content/Osago/lib/composeRequest.ts +++ b/src/client/Components/Calculation/ELT/Content/Osago/lib/composeRequest.ts @@ -61,10 +61,9 @@ export default function (this: ICalculationStore, company: IAccount) { const model = this.getOption('selectGPSModel')?.evo_id; const vehicleYear = this.getValue('leaseObjectYear') + ''; const leaseObjectCategory = this.getValue('leaseObjectCategory'); - const vehiclePower = - leaseObjectCategory === 100000001 - ? parseFloat(this.getValue('leaseObjectMotorPower') || '0') - : '0'; + const vehiclePower = parseFloat( + this.getValue('leaseObjectMotorPower') || '0', + ); let category = '0'; if (Object.keys(mapCategory).includes(`${leaseObjectCategory}`)) {