Skip to content
Snippets Groups Projects
Commit 2dff2d04 authored by Christoph Stahl's avatar Christoph Stahl
Browse files

If countdown falls under 0 seconds (due to delays) show a countdown of 0 seconds.

parent 4a58b55b
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,9 @@ const eta = computed(() =>{ ...@@ -16,6 +16,9 @@ const eta = computed(() =>{
let startTime = new Date(props.firstStartedAt * 1000) let startTime = new Date(props.firstStartedAt * 1000)
let playBackSeconds = (now - startTime) / 1000 let playBackSeconds = (now - startTime) / 1000
let etaSeconds = Math.round(props.offset - playBackSeconds) let etaSeconds = Math.round(props.offset - playBackSeconds)
if etaSeconds < 0 {
etaSeconds = 0
}
if (isNaN(etaSeconds)) { if (isNaN(etaSeconds)) {
return null return null
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment