diff --git a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts index ba5532a..1c62666 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts @@ -894,6 +894,28 @@ const reactionEffects: IReactionEffect[] = [ }, }), + calculationStore => ({ + expression: () => { + return { + options: calculationStore.getOptions( + 'selectLeasingWithoutKasko', + undefined, + true, + ), + value: calculationStore.getValue('leasingWithoutKasko'), + }; + }, + effect: (nextValues, prevValues) => { + if (prevValues.value && !nextValues.value) { + openNotification({ + type: 'warning', + message: 'Внимание', + description: 'Лизинг без КАСКО был сброшен', + }); + } + }, + }), + calculationStore => ({ expression: () => { const { leasingPeriod, leaseObjectType } = calculationStore.values;