diff --git a/src/core/features/course/components/module-summary/module-summary.ts b/src/core/features/course/components/module-summary/module-summary.ts index 669400790..5b87b840c 100644 --- a/src/core/features/course/components/module-summary/module-summary.ts +++ b/src/core/features/course/components/module-summary/module-summary.ts @@ -123,7 +123,7 @@ export class CoreCourseModuleSummaryComponent implements OnInit, OnDestroy { this.packageStatusObserver = CoreEvents.on( CoreEvents.PACKAGE_STATUS_CHANGED, (data) => { - if (data.componentId == module.id && data.component == this.component) { + if (data.componentId === this.module?.id && data.component == this.component) { this.getPackageStatus(); } },