fix(race-day): run again resets the current heat, not a stale copy; show the set time before the start (1.54.2)

This commit is contained in:
larssand committed 2026-11-03 08:46:51 +01:00
1 parent 8b625c3d64
commit a8996c4195
7 files changed
+32 -4

No files matched your search

+2 -1
View File
@@ -129,7 +129,8 @@ export function getSessionTiming(session, nowTs = Date.now(), { getSessionTarget
return {
targetMs,
elapsedMs,
remainingMs: targetMs === null ? null : Math.max(0, targetMs - elapsedMs),
// Before the start the clock shows the time set for the heat (5:00), not the release extension.
remainingMs: targetMs === null ? null : !startedAt ? baseTargetMs : Math.max(0, targetMs - elapsedMs),
untimed: targetMs === null,
followUpActive,
followUpRemainingMs,