chore: cleanup

This commit is contained in:
arc-alex
2025-08-14 19:30:08 +02:00
committed by Carlos Valente
parent 048a9c96ea
commit db922a67e2
4 changed files with 7 additions and 10 deletions
+1 -1
View File
@@ -272,5 +272,5 @@ export const useStudioTimersSocket = createSelector((state: RuntimeStore) => ({
export const useTimelineSocket = createSelector((state: RuntimeStore) => ({
clock: state.clock,
offsetAbs: state.offset.absolute,
offset: state.offset.absolute,
}));
@@ -15,7 +15,7 @@ interface TimelineSectionsProps {
export default function TimelineSections({ now, next, followedBy }: TimelineSectionsProps) {
const { getLocalizedString } = useTranslation();
const { clock, offsetAbs } = useTimelineSocket();
const { clock, offset } = useTimelineSocket();
// gather card data
const titleNow = now?.title ?? '-';
@@ -26,7 +26,7 @@ export default function TimelineSections({ now, next, followedBy }: TimelineSect
let followedByStatus: string | undefined;
if (next !== null) {
const timeToStart = getTimeToStart(clock, next.timeStart, next?.delay ?? 0, offsetAbs);
const timeToStart = getTimeToStart(clock, next.timeStart, next?.delay ?? 0, offset);
if (timeToStart < 0) {
nextStatus = dueText;
} else {
@@ -35,7 +35,7 @@ export default function TimelineSections({ now, next, followedBy }: TimelineSect
}
if (followedBy !== null) {
const timeToStart = getTimeToStart(clock, followedBy.timeStart, followedBy?.delay ?? 0, offsetAbs);
const timeToStart = getTimeToStart(clock, followedBy.timeStart, followedBy?.delay ?? 0, offset);
if (timeToStart < 0) {
followedByStatus = dueText;
} else {