MOBILE-4081 calendar: Fix site home event not displayed

main
Dani Palou 2022-12-13 12:23:55 +01:00
parent f5fcaecf48
commit 5d5e436a8d
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/**