fix: hide now and next cards if there is no content

This commit is contained in:
Carlos Valente
2026-02-16 06:54:11 +01:00
committed by Carlos Valente
parent aec6673b07
commit 39e6c15adf
+2 -2
View File
@@ -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,
};