This commit is contained in:
Daniel Flanagan 2024-01-21 20:39:24 -06:00
parent 6931d0d69b
commit 05be045762
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -34,11 +34,11 @@ export function Routine(
setInterval(() => {
const delta = (new Date()).getTime() - lastPhaseSelection.getTime()
const nowPhase = toPhase()
if (nowPhase != currentPhase.value && delta >= 5000) {
if (nowPhase != currentPhase.value && delta >= 1000 * 60 * 10) {
currentPhase.value = nowPhase
lastPhaseSelection = new Date()
}
}, 2_000)
}, 5_000)
}
}, [])