From d0756cb3c0e0e444aa4bdef114b5a4349619d166 Mon Sep 17 00:00:00 2001 From: retroboy Date: Thu, 21 Sep 2023 17:08:16 +0200 Subject: [PATCH] fixed weeks order for Volume Contest --- src/components/VolumeContestUserScoreTable/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/VolumeContestUserScoreTable/index.js b/src/components/VolumeContestUserScoreTable/index.js index ab7a27b..6e15c5e 100644 --- a/src/components/VolumeContestUserScoreTable/index.js +++ b/src/components/VolumeContestUserScoreTable/index.js @@ -75,7 +75,6 @@ const DashGridItemRow = styled(DashGrid)` ` function VolumeContestUserScoreTable({ weeks }) { - const sortWeeksInDescendingOrder = (a, b) => b?.id - a?.id const areWeeksAvailable = !!weeks?.length const ListItem = ({ week }) => { @@ -113,7 +112,7 @@ function VolumeContestUserScoreTable({ weeks }) { const weeksList = weeks?.length && - weeks.sort(sortWeeksInDescendingOrder).map((week, index) => { + weeks.map((week, index) => { return })