fix(overlay): show the heat's start list before the first passing (1.65.6)

This commit is contained in:
larssand committed 2026-11-05 20:02:08 +01:00
1 parent 54f4c3b923
commit 31ac04616a
4 files changed
+16 -4

No files matched your search

+7 -1
View File
@@ -182,7 +182,13 @@ export function renderOverlayPageView(deps) {
const active = getActiveSession();
// Every driver: an Open Practice often has more than 12 cars out (OBS has its own row
// setting and cuts the list itself).
const leaderboard = active ? buildLeaderboard(active) : [];
const liveRows = active ? buildLeaderboard(active) : [];
// Before anyone has crossed the line (heat not started yet): the heat's start list, in grid
// order, so the screen shows who is in the heat (sponsor heats: with their car).
const startList = !liveRows.length && active && active.type !== "open_practice"
? getSessionGridEntries(active).map((entry, index) => ({ key: `grid_${index}`, displayName: entry.name, subLabel: entry.meta, laps: 0, resultDisplay: "-", bestLapMs: null }))
: [];
const leaderboard = liveRows.length ? liveRows : startList;
const result = active ? ensureSessionResult(active.id) : null;
const sessionTiming = active ? getSessionTiming(active) : null;
const overlayClock = sessionTiming?.followUpActive