Skip to content

Commit

Permalink
fix incorrect round index
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Apr 23, 2024
1 parent 8489b00 commit ec6f0d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vue-app/src/api/rounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ export async function getRounds(): Promise<Round[]> {
}
}

const lastIndex = rounds.length - 1
return rounds
.sort((a, b) => b.startTime - a.startTime)
.map((r, index) => {
return {
index,
index: lastIndex - index,
address: r.address,
hasLeaderboard: r.hasLeaderboard,
startTime: r.startTime,
Expand Down

0 comments on commit ec6f0d6

Please sign in to comment.