From 5d5e436a8d57a707d2ea9e8c243deb6897c433f2 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 13 Dec 2022 12:23:55 +0100 Subject: [PATCH] MOBILE-4081 calendar: Fix site home event not displayed --- src/addons/calendar/services/calendar-helper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/addons/calendar/services/calendar-helper.ts b/src/addons/calendar/services/calendar-helper.ts index bfe8f04df..024d099aa 100644 --- a/src/addons/calendar/services/calendar-helper.ts +++ b/src/addons/calendar/services/calendar-helper.ts @@ -617,7 +617,7 @@ export class AddonCalendarHelperProvider { const eventCourse = (event.course && event.course.id) || event.courseid; // Show the event if it is from site home or if it matches the selected course. - return !!eventCourse && (eventCourse == CoreSites.getCurrentSiteHomeId() || eventCourse == courseId); + return !eventCourse || (eventCourse === CoreSites.getCurrentSiteHomeId() || eventCourse === courseId); } /**