allow count up to show negative value

This commit is contained in:
arc-alex
2025-11-28 11:19:10 +01:00
committed by Carlos Valente
parent 8e93b0af25
commit a78586d2fa
@@ -28,7 +28,7 @@ export function getTimerByType(
}
return freezeEnd ? Math.max(timerObject.current, 0) : timerObject.current;
case TimerType.CountUp:
return Math.abs(timerObject.elapsed ?? 0);
return timerObject.elapsed;
case TimerType.Clock:
return clock;
case TimerType.None: