From c6f8d2d2cac4c4b5ad882b797d526cb76d7ac636 Mon Sep 17 00:00:00 2001 From: Chika Date: Thu, 29 Sep 2022 16:35:12 +0300 Subject: [PATCH] fix 450eb18 --- .../Effects/reactions/otherReactions.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts index fbe74b2..ba5532a 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts @@ -867,12 +867,12 @@ const reactionEffects: IReactionEffect[] = [ calculationStore.setFilter('selectLeasingWithoutKasko', options => options.filter( x => - x?.evo_max_period && - x?.evo_min_period && + x?.evo_max_period !== undefined && + x?.evo_min_period !== undefined && x.evo_max_period >= leasingPeriod && x.evo_min_period <= leasingPeriod && - x?.evo_max_price && - x?.evo_min_price && + x?.evo_max_price !== undefined && + x?.evo_min_price !== undefined && x.evo_max_price >= plPriceRub - discountRub - importProgramSum + addEquipmentPrice && x.evo_min_price <= @@ -881,9 +881,9 @@ const reactionEffects: IReactionEffect[] = [ x => x.evo_leasingobject_typeid === leaseObjectType, ) && x.evo_visible_calc && - x.evo_min_first_payment_perc && + x.evo_min_first_payment_perc !== undefined && x.evo_min_first_payment_perc <= firstPaymentPerc && - x.evo_max_first_payment_perc && + x.evo_max_first_payment_perc !== undefined && x.evo_max_first_payment_perc >= firstPaymentPerc && !x.evo_models?.map(x => x.evo_modelid).includes(modelId), ),