From 5ea97faf422f893c23b4cc21ff2988aed2f83f8b Mon Sep 17 00:00:00 2001 From: Chika Date: Fri, 18 Jun 2021 15:05:32 +0300 Subject: [PATCH] fix lessee subjectType --- .../ELT/Content/Kasko/lib/composeRequest.ts | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/client/Components/Calculation/ELT/Content/Kasko/lib/composeRequest.ts b/src/client/Components/Calculation/ELT/Content/Kasko/lib/composeRequest.ts index d7e1969..530af7c 100644 --- a/src/client/Components/Calculation/ELT/Content/Kasko/lib/composeRequest.ts +++ b/src/client/Components/Calculation/ELT/Content/Kasko/lib/composeRequest.ts @@ -35,8 +35,8 @@ const mapCategory = { }; const mapInfuranceToLesseSubjectType = { - 100000000: '1', - 100000001: '2', + 100000000: 1, + 100000001: 2, }; const getSpecified = value => !isNull(value); @@ -117,11 +117,7 @@ export default function (this: ICalculationStore) { const INN = `${this.getValue('INNForCalc')}`; const infuranceOPF = this.getValue('infuranceOPF'); - const lesseSubjectType = get( - mapInfuranceToLesseSubjectType, - infuranceOPF, - '0', - ); + const lesseSubjectType = get(mapInfuranceToLesseSubjectType, infuranceOPF, 0); return { preparams: {