From cf22a9c8f2a81cc6891bb836b960bb976232ca34 Mon Sep 17 00:00:00 2001 From: keplyx Date: Fri, 1 Nov 2019 06:49:57 +0100 Subject: [PATCH] Fixed events available detection --- screens/HomeScreen.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/screens/HomeScreen.js b/screens/HomeScreen.js index 898ee42..258ef7b 100644 --- a/screens/HomeScreen.js +++ b/screens/HomeScreen.js @@ -306,9 +306,9 @@ export default class HomeScreen extends FetchedDataSectionList { let icon = 'calendar-range'; let color = ThemeManager.getCurrentThemeVariables().planningColor; let title = i18n.t('homeScreen.dashboard.todayEventsTitle'); - let isAvailable = content.length > 0; let subtitle = ''; let futureEvents = this.getFutureEvents(content); + let isAvailable = futureEvents.length > 0; if (isAvailable) { subtitle =