From 39e6c15adf0063d0cc472b0583c3bbdd0856644b Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Mon, 16 Feb 2026 06:54:11 +0100 Subject: [PATCH] fix: hide now and next cards if there is no content --- apps/client/src/views/timer/timer.utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/views/timer/timer.utils.ts b/apps/client/src/views/timer/timer.utils.ts index de052fad7..1add32d88 100644 --- a/apps/client/src/views/timer/timer.utils.ts +++ b/apps/client/src/views/timer/timer.utils.ts @@ -181,10 +181,10 @@ export function getCardData( : getPropertyValue(eventNow, secondarySource, entries); return { - showNow: mainSource !== 'none' || Boolean(nowSecondary), + showNow: mainSource !== 'none' && (Boolean(nowMain) || Boolean(nowSecondary)), nowMain, nowSecondary, - showNext: mainSource !== 'none' || Boolean(nextSecondary), + showNext: mainSource !== 'none' && (Boolean(nextMain) || Boolean(nextSecondary)), nextMain, nextSecondary, };