Skip to content

Commit 94c7637

Browse files
committed
fix: search to lower case in query
1 parent 07f83fa commit 94c7637

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/src/hooks/queries/useJurorsByCoherenceScore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const useJurorsByCoherenceScore = (
4343
await graphqlBatcher.fetch({
4444
id: crypto.randomUUID(),
4545
document: jurorsByCoherenceScoreQuery,
46-
variables: { skip, first, orderBy, orderDirection, search },
46+
variables: { skip, first, orderBy, orderDirection, search: search.toLowerCase() },
4747
}),
4848
});
4949
};

web/src/pages/Jurors/Search.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const StyledSearchbar = styled(Searchbar)`
2020
`;
2121

2222
const Search: React.FC = () => {
23-
const { page, order, filter } = useParams();
23+
const { order, filter } = useParams();
2424
const location = useRootPath();
2525
const decodedFilter = decodeURIFilter(filter ?? "all");
2626
const { id: searchValue, ...filterObject } = decodedFilter;

0 commit comments

Comments
 (0)