Skip to content

Commit

Permalink
fix: CVS filter
Browse files Browse the repository at this point in the history
  • Loading branch information
domysh committed Oct 18, 2024
1 parent 0c81486 commit 9f5180a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/pages/app/LeaderBoard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export const LeaderBoard = () => {
className="w-full"
size="s"
onClick={() => {
const csv = users.map((user, pos) => `${pos+1},${user.nickname},${user.score},${user.timestamp},${groupByColor(user.groupColor)?.name}`).join("\n")
const csv = filteredAndSortedUsers.map((user, pos) => `${pos+1},${user.nickname},${user.score},${user.timestamp},${groupByColor(user.groupColor)?.name}`).join("\n")
const blob = new Blob(["Position,Nickname,Score,LastSubmission,GroupName\n"+csv], { type: "text/csv" })
const url = URL.createObjectURL(blob)
const a = document.createElement("a")
Expand Down

0 comments on commit 9f5180a

Please sign in to comment.