fix: recalc disabled agents fields
This commit is contained in:
parent
8e65d864ef
commit
554a702e6c
@ -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')
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user