diff --git a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts index 864d1bb..9668689 100644 --- a/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts +++ b/src/client/stores/CalculationStore/Effects/reactions/otherReactions.ts @@ -1426,23 +1426,12 @@ const reactionEffects: IReactionEffect[] = [ expression: () => { return { selectProduct: calculationStore.getOption('selectProduct'), - selectDealerPerson: calculationStore.getOption('selectDealerPerson'), }; }, - effect: ({ selectProduct, selectDealerPerson }) => { - if ( - selectProduct?.evo_supplier_financing_accept && - selectDealerPerson?.evo_supplier_financing_accept - ) { - calculationStore.setStatus( - 'cbxSupplierFinancing', - ElementStatus.Default, - ); + effect: ({ selectProduct }) => { + if (selectProduct?.evo_supplier_financing_accept) { + calculationStore.setValue('supplierFinancing', true); } else { - calculationStore.setStatus( - 'cbxSupplierFinancing', - ElementStatus.Disabled, - ); calculationStore.setValue('supplierFinancing', false); } },