From 80cf81fe4f6d2feef681d3681c5323eaaed9259d Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 26 Mar 2024 09:44:25 +0100 Subject: [PATCH] CM-838: fix total number of benefits (#46) Co-authored-by: Jan --- src/components/payroll/BenefitConsumptionPayrollSearcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/payroll/BenefitConsumptionPayrollSearcher.js b/src/components/payroll/BenefitConsumptionPayrollSearcher.js index ef53f86..c951f75 100644 --- a/src/components/payroll/BenefitConsumptionPayrollSearcher.js +++ b/src/components/payroll/BenefitConsumptionPayrollSearcher.js @@ -154,7 +154,7 @@ function BenefitConsumptionPayrollSearcher({ if (payrollBenefitConsumptionsTotalCount > totalNumberOfBenefits) { setTotalNumberOfBenefits(payrollBenefitConsumptionsTotalCount); } - }, [benefitsSummary]); + }, [payrollBenefitConsumptionsTotalCount]); const benefitConsumptionPayrollFilter = ({ filters, onChangeFilters }) => (