MOBILE-4470 course-summary: Fix download status not updated

main
Dani Palou 2024-05-24 11:45:02 +02:00
parent 1c84715f9a
commit 63777bc439
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
},