fix: expectedFinish flashing incorrect value when adding timer in overtime

This commit is contained in:
arc-alex
2025-12-11 15:41:10 +01:00
committed by Carlos Valente
parent 77225383a4
commit 35a4361ae9
+1 -1
View File
@@ -488,13 +488,13 @@ export function addTime(amount: number) {
// we can update the state after handling the side effects
runtimeState.timer.addedTime += amount;
runtimeState.timer.expectedFinish += amount;
runtimeState.timer.current += amount;
// update runtime delays: over - under
const { absolute, relative } = getRuntimeOffset(runtimeState);
runtimeState.offset.absolute = absolute;
runtimeState.offset.relative = relative;
runtimeState.timer.expectedFinish = getExpectedFinish(runtimeState);
getExpectedTimes();
return true;