Skip to content

Commit

Permalink
fix default sort direction
Browse files Browse the repository at this point in the history
  • Loading branch information
collinmurd committed Oct 13, 2024
1 parent 3203079 commit e28553c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function ScoresTable(props: {data: ScoresTableData[]}) {
const searchParams = useSearchParams();
const [currentSort, setCurrentSort] = useState<SortStatus>({
key: (!searchParams.get('sort') || searchParams.get('sort') === 'score') ? 'score' : 'proj',
desc: searchParams.get('dir') === 'desc'
desc: searchParams.get('dir') ? searchParams.get('dir') === 'desc' : true
});
let pathName = usePathnameWithBasepath();
if (pathName.endsWith('/')) {
Expand Down

0 comments on commit e28553c

Please sign in to comment.