Fixed stuff
This commit is contained in:
parent
ab30475a16
commit
eaa1cbd6c4
1 changed files with 2 additions and 3 deletions
|
@ -58,7 +58,6 @@ export default function Leaderboard() {
|
|||
<motion.ul className="flex flex-col space-y-2">
|
||||
{data?.groups.map((group, key) => {
|
||||
const tries = group.players.reduce((a, b) => a + b.tries, 0) || 0;
|
||||
const puzzles = group.players.reduce((a, b) => a + b.completion, 0) || 0;
|
||||
return (
|
||||
<motion.li
|
||||
layout
|
||||
|
@ -88,10 +87,10 @@ export default function Leaderboard() {
|
|||
</div>
|
||||
</div>
|
||||
<div className="flex items-center space-x-4">
|
||||
<div className="flex flex-col">
|
||||
{/* <div className="flex flex-col">
|
||||
<span className="text-sm font-semibold">Puzzle{puzzles > 1 ? 's' : ''}</span>
|
||||
<span className="text-lg text-muted">{puzzles}</span>
|
||||
</div>
|
||||
</div> */}
|
||||
<div className="flex flex-col">
|
||||
<span className="text-sm font-semibold">Essai{tries > 1 ? 's' : ''}</span>
|
||||
<span className="text-lg text-muted">{tries}</span>
|
||||
|
|
Loading…
Add table
Reference in a new issue