diff --git a/src/showplanner/Player.tsx b/src/showplanner/Player.tsx index dbdcb67..8c2f2ac 100644 --- a/src/showplanner/Player.tsx +++ b/src/showplanner/Player.tsx @@ -222,14 +222,14 @@ export function Player({ id }: { id: number }) { } }; - var channel_duration: number = 0; - var channel_unplayed: number = 0; + let channelDuration = 0; + let channelUnplayed = 0; const plan = useSelector((state: RootState) => state.showplan.plan); plan?.forEach((pItem) => { if (pItem.channel === id) { - channel_duration += HHMMTosec(pItem.length); + channelDuration += HHMMTosec(pItem.length); if (!pItem.played) { - channel_unplayed += HHMMTosec(pItem.length); + channelUnplayed += HHMMTosec(pItem.length); } } }); @@ -243,10 +243,14 @@ export function Player({ id }: { id: number }) { } >
- - Total: {secToHHMM(channel_duration)} - -  Un-played: {secToHHMM(channel_unplayed)} - +
+ + Total: {secToHHMM(channelDuration)} + + + Unplayed: {secToHHMM(channelUnplayed)} + +
Channel Controls