Skip to content

Commit

Permalink
fixed weeks order for Volume Contest
Browse files Browse the repository at this point in the history
  • Loading branch information
retroboydev committed Sep 21, 2023
1 parent 15c39a9 commit d0756cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/VolumeContestUserScoreTable/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => {
Expand Down Expand Up @@ -113,7 +112,7 @@ function VolumeContestUserScoreTable({ weeks }) {

const weeksList =
weeks?.length &&
weeks.sort(sortWeeksInDescendingOrder).map((week, index) => {
weeks.map((week, index) => {
return <ListItem key={index} index={week.startDt} week={week} />
})

Expand Down

0 comments on commit d0756cb

Please sign in to comment.