Commit 9dfa339c authored by Emmanuel Raviart's avatar Emmanuel Raviart

Replace TODOs.

parent cafd1254
......@@ -102,7 +102,18 @@ async function ticTac() {
seconds += 1 // Must be just before sleep and end of loop.
}
} else if (data.nowPlaying === "results") {
// TODO
if (data.playingTopicId !== null) {
// if (seconds >= data.duration) {
// data.playingTopicId = null
// seconds = 0
// }
data.seconds = seconds
sendDataToWssClients(adminWss, data)
sendDataToWssClients(homeWss, data)
}
if (data.secondsRunning) {
seconds += 1 // Must be just before sleep and end of loop.
}
} else if (data.nowPlaying === "slideshow") {
if (seconds >= 10) {
seconds = 0
......
......@@ -6,7 +6,7 @@
{#if nowPlaying === "pitches" && playingTopicId !== null && topicEmbedById[playingTopicId]}
<TopicScreen duration={duration} nextTopicEmbed={nextAcceptedProjectId === null ? null : topicEmbedById[nextAcceptedProjectId]} seconds={seconds} topicEmbed={topicEmbedById[playingTopicId]}/>
{:elseif nowPlaying === "results" && playingTopicId !== null && topicEmbedById[playingTopicId]}
"results" {nowPlaying}
<TopicScreen duration={duration} nextTopicEmbed={nextAcceptedProjectId === null ? null : topicEmbedById[nextAcceptedProjectId]} seconds={seconds} topicEmbed={topicEmbedById[playingTopicId]}/>
{:elseif nowPlaying === "slideshow" & playingTopicId !== null && topicEmbedById[playingTopicId]}
<TopicScreen duration={null} nextTopicEmbed={null} seconds={null} topicEmbed={topicEmbedById[playingTopicId]}/>
{:else}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment