forked from vergnet/application-amicale
Fixed events available detection
This commit is contained in:
parent
7ffa79481e
commit
cf22a9c8f2
1 changed files with 1 additions and 1 deletions
|
@ -306,9 +306,9 @@ export default class HomeScreen extends FetchedDataSectionList {
|
||||||
let icon = 'calendar-range';
|
let icon = 'calendar-range';
|
||||||
let color = ThemeManager.getCurrentThemeVariables().planningColor;
|
let color = ThemeManager.getCurrentThemeVariables().planningColor;
|
||||||
let title = i18n.t('homeScreen.dashboard.todayEventsTitle');
|
let title = i18n.t('homeScreen.dashboard.todayEventsTitle');
|
||||||
let isAvailable = content.length > 0;
|
|
||||||
let subtitle = '';
|
let subtitle = '';
|
||||||
let futureEvents = this.getFutureEvents(content);
|
let futureEvents = this.getFutureEvents(content);
|
||||||
|
let isAvailable = futureEvents.length > 0;
|
||||||
if (isAvailable) {
|
if (isAvailable) {
|
||||||
subtitle =
|
subtitle =
|
||||||
<Text>
|
<Text>
|
||||||
|
|
Loading…
Reference in a new issue