Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredenck committed Feb 14, 2024
1 parent ac7c9e5 commit bb2b60f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/FilterList.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ const FilterList = ({ pointsData, filterList, setFilterList, showPercent, showCo
setFilterList([...filterList, [key, value]]);
}
}
const removeFilter = (key, value) => {
const updatedFilterList = filterList.filter(([filterKey, filterValue]) => !(filterKey === key && filterValue === value));
setFilterList(updatedFilterList);
};

//Counts points for each filter
const countFilteredPointsForValue = (key, value) => {
Expand Down

0 comments on commit bb2b60f

Please sign in to comment.