From b002c1650c40a1084f8efc20fe710a309f7518fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pau=20Ferrer=20Oca=C3=B1a?= Date: Thu, 24 Nov 2022 16:41:06 +0100 Subject: [PATCH] MOBILE-4081 course: hasInfo condition should be the same as in HTML. --- src/core/features/course/components/module/module.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/features/course/components/module/module.ts b/src/core/features/course/components/module/module.ts index 5aa7db4c1..fa88c7094 100644 --- a/src/core/features/course/components/module/module.ts +++ b/src/core/features/course/components/module/module.ts @@ -93,9 +93,7 @@ export class CoreCourseModuleComponent implements OnInit, OnDestroy { this.hasInfo = !!( this.module.description || (this.showActivityDates && this.module.dates && this.module.dates.length) || - (this.autoCompletionTodo) || - (this.module.visible === 0 && (!this.section || this.section.visible)) || - (this.module.visible !== 0 && this.module.isStealth) || + (this.autoCompletionTodo && !this.showLegacyCompletion) || (this.module.availabilityinfo) );