Skip to content

Commit

Permalink
Allow to filter with 0
Browse files Browse the repository at this point in the history
  • Loading branch information
sigridge committed Jul 23, 2024
1 parent 89920b0 commit 0947be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/hooks/staffing/useConsultantsFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,9 @@ function experienceRange(
end: parseInt(experienceTo),
};
if (
(!experienceRange.start ||
(Number.isNaN(experienceRange.start) ||
consultant.yearsOfExperience >= experienceRange.start) &&
(!experienceRange.end ||
(Number.isNaN(experienceRange.end) ||
consultant.yearsOfExperience <= experienceRange.end)
)
return true;
Expand Down

0 comments on commit 0947be3

Please sign in to comment.