new raceday and backup

This commit is contained in:
larssand committed 2026-09-01 07:07:23 +02:00
1 parent c2bfa97d30
commit f561dd8feb
21 files changed
+1042 -60

No files matched your search

+4 -1
View File
@@ -70,7 +70,10 @@ export function buildRaceDayPreflight(state, session, { backendAvailable = false
const minLapMs = Math.max(0, Number(event?.raceConfig?.minLapMs || 0) || 0);
const maxLapMs = Math.max(0, Number(event?.raceConfig?.maxLapMs || 0) || 0);
checks.push(check("lap_window", event?.mode !== "race" || (maxLapMs > minLapMs && maxLapMs > 0) ? "ok" : "error", { minLapMs, maxLapMs }));
const validLapWindow = maxLapMs > minLapMs && minLapMs > 0;
const openPractice = session.type === "open_practice";
const lapWindowLevel = event?.mode !== "race" || validLapWindow ? "ok" : openPractice ? "warning" : "error";
checks.push(check("lap_window", lapWindowLevel, { minLapMs, maxLapMs }));
let entrantIds = [];
let transponders = [];