Skip to content

Commit

Permalink
fix: sort by boost
Browse files Browse the repository at this point in the history
  • Loading branch information
DillonLin authored Apr 13, 2023
1 parent 82533eb commit 30ebc65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/components/common/TradingLeaderboardTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@ const TradingLeaderboardTable = ({ traders, onClick, onBoostClick, pageSize, ...
return null
}

const sortedRows = rows.sort((a, b) => b.boost - a.boost)
return (
<Table
data={rows}
data={sortedRows}
columns={columns}
pageSize={pageSize}
{...styleProps}
Expand Down

0 comments on commit 30ebc65

Please sign in to comment.