website cleanup

This commit is contained in:
2025-12-25 00:37:40 +01:00
parent ffcbc85b9b
commit 9a20a9bbfb
5 changed files with 61 additions and 29 deletions

View File

@@ -56,8 +56,8 @@ export default function LeagueRulebookPage() {
const primaryChampionship = viewModel.scoringConfig.championships.find(c => c.type === 'driver') ?? viewModel.scoringConfig.championships[0];
const positionPoints = primaryChampionship?.pointsPreview
.filter(p => p.sessionType === primaryChampionship.sessionTypes[0])
.map(p => ({ position: p.position, points: p.points }))
.filter(p => (p as any).sessionType === primaryChampionship.sessionTypes[0])
.map(p => ({ position: Number((p as any).position), points: Number((p as any).points) }))
.sort((a, b) => a.position - b.position) || [];
const sections: { id: RulebookSection; label: string }[] = [