Compare commits
2 Commits
feature/le
...
v0.22.1
| Author | SHA1 | Date | |
|---|---|---|---|
| 51c45ad4a9 | |||
| 61f0b69176 |
@@ -16,7 +16,7 @@ export function LeaderboardStandings({ leaderboard }: LeaderboardStandingsProps)
|
|||||||
(t) => t.fastestLapInitials === driver.initials
|
(t) => t.fastestLapInitials === driver.initials
|
||||||
).length;
|
).length;
|
||||||
const totalPoints =
|
const totalPoints =
|
||||||
trackResults.reduce((sum, r) => sum + (typeof r === 'number' ? r : 0), 0) +
|
trackResults.reduce((sum: number, r) => sum + (typeof r === 'number' ? r : 0), 0) +
|
||||||
fastestLapCount * leaderboard.flPoints.points;
|
fastestLapCount * leaderboard.flPoints.points;
|
||||||
return { driver, driverIndex: idx, totalPoints, trackResults, fastestLapCount };
|
return { driver, driverIndex: idx, totalPoints, trackResults, fastestLapCount };
|
||||||
})
|
})
|
||||||
@@ -100,9 +100,7 @@ export function LeaderboardStandings({ leaderboard }: LeaderboardStandingsProps)
|
|||||||
<td className="px-2 py-2 text-center text-xs text-purple-400">
|
<td className="px-2 py-2 text-center text-xs text-purple-400">
|
||||||
{row.fastestLapCount > 0 ? `×${row.fastestLapCount}` : '—'}
|
{row.fastestLapCount > 0 ? `×${row.fastestLapCount}` : '—'}
|
||||||
</td>
|
</td>
|
||||||
<td className="px-2 py-2 text-center font-bold text-yellow-400">
|
<td className="px-2 py-2 text-center font-bold text-yellow-400">{row.totalPoints}</td>
|
||||||
{row.totalPoints}
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
))}
|
))}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user