From 554a702e6ce7f49d5466ce91daa47bfd70efcc2d Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Mon, 5 Jun 2023 10:28:48 +0300 Subject: [PATCH] fix: recalc disabled agents fields --- apps/web/process/recalc/reactions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/process/recalc/reactions.ts b/apps/web/process/recalc/reactions.ts index eedd5d2..074cd9c 100644 --- a/apps/web/process/recalc/reactions.ts +++ b/apps/web/process/recalc/reactions.ts @@ -153,7 +153,7 @@ export function common({ store, apolloClient }: ProcessContext) { reaction( () => $calculation.$values.getValues(['firstPaymentPerc', 'recalcWithRevision']), ({ firstPaymentPerc, recalcWithRevision }) => { - if (firstPaymentPerc === 0 && recalcWithRevision === true) { + if (firstPaymentPerc === 0 || recalcWithRevision === true) { agents.forEach((elementName) => $calculation.$status.overrideStatus(elementName, 'Disabled') );