Skip to content

Commit

Permalink
Rounding moment
Browse files Browse the repository at this point in the history
  • Loading branch information
rorre committed Sep 8, 2023
1 parent 3d24e14 commit 6850e67
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/module/leaderboard/Leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default function Leaderboard({ isAdmin, className }: LeaderboardProps) {
<td>
<div className="flex flex-col gap-2">
<strong className="font-bold">{team.name}</strong>
<span title="Total Score">{team.total_score}</span>
<span title="Total Score">{team.total_score.toFixed(2)}</span>
</div>
</td>

Expand All @@ -80,13 +80,13 @@ export default function Leaderboard({ isAdmin, className }: LeaderboardProps) {
<td key={chall.id}>
<div className="grid grid-cols-2 font-mono">
<span className="text-error text-xl" title="Attack Score">
{challScore.attack ?? 0}
{challScore.attack.toFixed(2) ?? 0}
</span>
<span
className="text-success text-xl"
title="Defend Score"
>
{challScore.defense ?? 0}
{challScore.defense.toFixed(2) ?? 0}
</span>
<div className="col-span-2">
<span className="text-error" title="Flag Captured">
Expand Down

0 comments on commit 6850e67

Please sign in to comment.