Skip to content

Commit

Permalink
feat: set default min participant count to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
rushtong committed Feb 27, 2025
1 parent 89a001f commit 43a12a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/data_search/DatasetFilterConstants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ export const defaultFilters = (datasets: DatasetTerm[]): FiltersTypes => {
export const generateDefaultParticipantCountValues = (datasets: DatasetTerm[]) => datasets.reduce((acc, dataset) => {
return {
max: Math.max(acc.max, dataset.participantCount ? dataset.participantCount : 0),
min: Math.min(acc.min, dataset.participantCount ? dataset.participantCount : Infinity) };
min: 0 };
}, {max: 0, min: Infinity});

0 comments on commit 43a12a9

Please sign in to comment.