diff --git a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts index 1c62666..d15789d 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts @@ -916,6 +916,32 @@ const reactionEffects: IReactionEffect[] = [ }, }), + calculationStore => ({ + expression: () => { + return calculationStore.getValue('leasingWithoutKasko'); + }, + effect: leasingWithoutKasko => { + if (leasingWithoutKasko) { + calculationStore.setTableRow('tableInsurance', rows => + rows.findIndex(x => x?.key === 'finGAP'), + )({ + insuranceCompany: { + value: null, + status: ElementStatus.Disabled, + }, + }); + } else { + calculationStore.setTableRow('tableInsurance', rows => + rows.findIndex(x => x?.key === 'finGAP'), + )({ + insuranceCompany: { + status: ElementStatus.Default, + }, + }); + } + }, + }), + calculationStore => ({ expression: () => { const { leasingPeriod, leaseObjectType } = calculationStore.values;