From 8abf6aee7007b10dd2d05b6f8c886e4d790f7129 Mon Sep 17 00:00:00 2001 From: Carlos Valente <34649812+cpvalente@users.noreply.github.com> Date: Sun, 28 May 2023 10:26:07 +0200 Subject: [PATCH] fix: progress bar handles added time (#416) --- apps/client/src/features/viewers/backstage/Backstage.tsx | 4 +++- apps/client/src/features/viewers/timer/Timer.tsx | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/client/src/features/viewers/backstage/Backstage.tsx b/apps/client/src/features/viewers/backstage/Backstage.tsx index 618efc7de..d76468aec 100644 --- a/apps/client/src/features/viewers/backstage/Backstage.tsx +++ b/apps/client/src/features/viewers/backstage/Backstage.tsx @@ -72,6 +72,8 @@ export default function Backstage(props: BackstageProps) { } } + const totalTime = (time.duration ?? 0) + (time.addedTime ?? 0); + return (
@@ -87,7 +89,7 @@ export default function Backstage(props: BackstageProps) {