From 63777bc439c4b809c769eafb89949de85addff44 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Fri, 24 May 2024 11:45:02 +0200 Subject: [PATCH] MOBILE-4470 course-summary: Fix download status not updated --- .../features/course/components/module-summary/module-summary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } },