Time
This commit is contained in:
parent
6931d0d69b
commit
05be045762
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
}, [])
|
||||
|
||||
|
|
Loading…
Reference in a new issue