From f574fdbc02437a8e2c4f5b6078c704c610f5140a Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Thu, 7 Nov 2024 21:32:20 +0100 Subject: [PATCH] refactor: hide progress bar in timer none --- apps/client/src/features/viewers/timer/Timer.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/client/src/features/viewers/timer/Timer.tsx b/apps/client/src/features/viewers/timer/Timer.tsx index 27530fe5f..5c3eb38c8 100644 --- a/apps/client/src/features/viewers/timer/Timer.tsx +++ b/apps/client/src/features/viewers/timer/Timer.tsx @@ -116,7 +116,11 @@ export default function Timer(props: TimerProps) { const shouldShowModifiers = time.timerType === TimerType.CountDown || time.timerType === TimerType.TimeToEnd; const showEndMessage = shouldShowModifiers && finished && viewSettings.endMessage; - const showProgress = time.playback !== Playback.Stop; + const showProgress = + eventNow !== null && + time.timerType !== TimerType.None && + time.timerType !== TimerType.Clock && + time.playback !== Playback.Stop; const showFinished = shouldShowModifiers && finished && (shouldShowModifiers || showEndMessage); const showWarning = shouldShowModifiers && time.phase === TimerPhase.Warning; const showDanger = shouldShowModifiers && time.phase === TimerPhase.Danger;