diff --git a/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts b/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts index 36be9b3..d972e15 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/loadKpReaction/index.ts @@ -545,13 +545,12 @@ const loadKpReaction: IReactionEffect = calculationStore => ({ if (!isNil(quoteValue)) row[rowFieldName] = quoteValue; }); - //fix with Serega - row['evo_id_elt_osago'] = quote.evo_id_elt_osago - ? parseInt(quote.evo_id_elt_osago) - : undefined; + if (quote.evo_id_elt_osago) { + row['evo_id_elt_osago'] = parseInt(quote.evo_id_elt_osago); + } if ( - Object.keys(mapQuoteToELTOsago).length === + Object.keys(mapQuoteToELTOsago).length + 1 === Object.keys(row).length ) { ELTStore.addToCompanyRes('osago', osagoIndex, row);