Skip to content

Commit

Permalink
update leaderboard ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
Freeassassin committed Sep 6, 2023
1 parent a5fe4cd commit fe85b34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/pages/ScuntLeaderboard/ScuntLeaderboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ const ScuntLeaderboardFullScreen = ({ arr }) => {
};

const ScuntLeaderboardDesktop = ({ arr }) => {
arr?.sort((a, b) => b.computedPoints - a.computedPoints);

return (
<div className="leaderboard-page-desktop">
<table className="leaderboard-page-table">
Expand All @@ -225,7 +227,7 @@ const ScuntLeaderboardDesktop = ({ arr }) => {
};

const ScuntLeaderboardMobile = ({ arr }) => {
arr.sort((a, b) => b.computedPoints - a.computedPoints);
arr?.sort((a, b) => b.computedPoints - a.computedPoints);

return (
<div className="leaderboard-page-mobile">
Expand Down

0 comments on commit fe85b34

Please sign in to comment.