fix: presenter view

presenter view shows time correctly when rolling
This commit is contained in:
cv
2021-05-26 20:42:05 +02:00
parent f78c16fb8c
commit c310249cd3
2 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -37,7 +37,7 @@ const withSocket = (Component) => {
});
const [timer, setTimer] = useState({
clock: null,
currentSeconds: null,
running: null,
startedAt: null,
expectedFinish: null,
});
@@ -221,7 +221,7 @@ const withSocket = (Component) => {
// get clock string
const timeManager = {
...timer,
finished: timer.running <= 0 && timer.startedAt,
finished: playback === 'start' && timer.running <= 0 && timer.startedAt,
clock: stringFromMillis(timer.clock),
playstate: playback,
};