From 2121a4097e320587b3a6860b43efefe1f47b33cf Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 17 Apr 2023 11:37:25 +0300 Subject: [PATCH] =?UTF-8?q?=D1=81=D1=82=D1=80=D0=B0=D0=BD=D0=BD=D1=8B?= =?UTF-8?q?=D0=B5=20=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20supplierFinancing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Effects/reactions/otherReactions.ts | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) 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); } },