diff --git a/src/core/features/course/services/course-helper.ts b/src/core/features/course/services/course-helper.ts index 7dc88fd7b..ad36f9899 100644 --- a/src/core/features/course/services/course-helper.ts +++ b/src/core/features/course/services/course-helper.ts @@ -1064,15 +1064,13 @@ export class CoreCourseHelperProvider { * * @param courses Courses array to get info from. * @param prefetch Prefetch information. - * @param minCourses Min course to show icon. * @return Resolved with the prefetch information updated when done. */ async initPrefetchCoursesIcons( courses: CoreCourseBasicData[], prefetch: CorePrefetchStatusInfo, - minCourses: number = 2, ): Promise { - if (!courses || courses.length < minCourses) { + if (!courses || courses.length <= 0) { // Not enough courses. prefetch.icon = '';