From 30ebc653c3025135bb7bd548a2565e2bcf398539 Mon Sep 17 00:00:00 2001 From: Dillon Lin <30581721+DillonLin@users.noreply.github.com> Date: Thu, 13 Apr 2023 13:47:21 +1000 Subject: [PATCH] fix: sort by boost --- app/src/components/common/TradingLeaderboardTable/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/components/common/TradingLeaderboardTable/index.tsx b/app/src/components/common/TradingLeaderboardTable/index.tsx index f37a2c43..a10db4a7 100644 --- a/app/src/components/common/TradingLeaderboardTable/index.tsx +++ b/app/src/components/common/TradingLeaderboardTable/index.tsx @@ -167,9 +167,10 @@ const TradingLeaderboardTable = ({ traders, onClick, onBoostClick, pageSize, ... return null } + const sortedRows = rows.sort((a, b) => b.boost - a.boost) return (