From 2a854439e5fb24bec3684bf5a8db4ff77da59ae8 Mon Sep 17 00:00:00 2001 From: Jan Date: Tue, 26 Mar 2024 10:21:20 +0100 Subject: [PATCH] CM-838: fix filter by amount --- .../payroll/BenefitConsumptionPayrollFilter.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/components/payroll/BenefitConsumptionPayrollFilter.js b/src/components/payroll/BenefitConsumptionPayrollFilter.js index a817352..ee556b7 100644 --- a/src/components/payroll/BenefitConsumptionPayrollFilter.js +++ b/src/components/payroll/BenefitConsumptionPayrollFilter.js @@ -34,16 +34,6 @@ function BenefitConsumptionPayrollFilter({ filters, onChangeFilters, benefitPlan const filterValue = (filterName) => filters?.[filterName]?.value ?? null; - const onChangeFilter = (filterName) => (value) => { - debouncedOnChangeFilters([ - { - id: filterName, - value: value || null, - filter: `${filterName}: ${value}`, - }, - ]); - }; - const onChangeStringFilter = (filterName, lookup = null) => (value) => { if (lookup) { debouncedOnChangeFilters([ @@ -166,7 +156,7 @@ function BenefitConsumptionPayrollFilter({ filters, onChangeFilters, benefitPlan label={formatMessage('benefitConsumption.amount')} min={0} value={filterValue('benefit_Amount')} - onChange={onChangeFilter('benefit_Amount')} + onChange={onChangeStringFilter('benefit_Amount')} />