Skip to content

Commit

Permalink
more strict filter search
Browse files Browse the repository at this point in the history
  • Loading branch information
j8seangel committed Nov 15, 2024
1 parent d7ec10e commit 51608d1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/casos-activos/solicitudes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ function getDataFiltered(data: HelpRequestData[], filters: DataFilter[]) {
return data;
}

return filters.reduceRight((results, { value, keys }) => matchSorter(results, value, { keys }), data);
return filters.reduceRight(
(results, { value, keys }) =>
matchSorter(results, value, { keys, threshold: matchSorter.rankings.WORD_STARTS_WITH }),
data,
);
}

type SolicitudesProps = {
Expand Down

0 comments on commit 51608d1

Please sign in to comment.