Skip to content

Commit

Permalink
Improve leaderboard
Browse files Browse the repository at this point in the history
  • Loading branch information
vrde committed Nov 6, 2024
1 parent 1dba8a6 commit ac53859
Show file tree
Hide file tree
Showing 4 changed files with 485 additions and 397 deletions.
4 changes: 2 additions & 2 deletions lib/src/thc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ export function processLeaderboard(
if (nextPage === null) {
leaderboard.sort((a, b) =>
a.chapter !== b.chapter
? a.chapter - b.chapter
: b.timestamp - a.timestamp
? b.chapter - a.chapter
: a.timestamp - b.timestamp
);
}

Expand Down
1 change: 1 addition & 0 deletions web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"burner-connector": "^0.0.8",
"chakra-ui-markdown-renderer": "^4.1.0",
"connectkit": "^1.8.2",
"date-fns": "^4.1.0",
"ethereum-ens-name": "^0.0.3",
"ethers": "6.7.0",
"framer-motion": "^11.3.28",
Expand Down
Loading

0 comments on commit ac53859

Please sign in to comment.