Skip to content

Commit 778c0b4

Browse files
committed
style: linting fix for useQuerySort
1 parent c699824 commit 778c0b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

frontend/hooks/useQuerySort.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const validSortQueries: string[] = sortBarDropdown.map((item) => item.value);
77

88
const isValidSort = (value: string): boolean => {
99
return validSortQueries.includes(value);
10-
}
10+
};
1111

1212
// Function to handle query string parameters for sorting in page.tsx (browse page)
1313
const useQuerySort = (): [string, (sort: string) => void] => {
@@ -19,7 +19,7 @@ const useQuerySort = (): [string, (sort: string) => void] => {
1919
// On initial load, fallback to alphabetical sort if no sort query parameter provided
2020
const [sort, setSort] = useState<string>(() => {
2121
const value = searchParams.get("sort");
22-
return value && isValidSort(value) ? value : "alphabetical"
22+
return value && isValidSort(value) ? value : "alphabetical";
2323
});
2424

2525
// Apply sort to URL when sort changes

0 commit comments

Comments
 (0)