Browse Source

Fixed events available detection

keplyx 2 years ago
parent
commit
cf22a9c8f2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      screens/HomeScreen.js

+ 1
- 1
screens/HomeScreen.js View File

@@ -306,9 +306,9 @@ export default class HomeScreen extends FetchedDataSectionList {
306 306
         let icon = 'calendar-range';
307 307
         let color = ThemeManager.getCurrentThemeVariables().planningColor;
308 308
         let title = i18n.t('homeScreen.dashboard.todayEventsTitle');
309
-        let isAvailable = content.length > 0;
310 309
         let subtitle = '';
311 310
         let futureEvents = this.getFutureEvents(content);
311
+        let isAvailable = futureEvents.length > 0;
312 312
         if (isAvailable) {
313 313
             subtitle =
314 314
                 <Text>

Loading…
Cancel
Save