diff --git a/src/core/features/course/components/course-format/course-format.html b/src/core/features/course/components/course-format/course-format.html
index 3afda6fd4..e796412d3 100644
--- a/src/core/features/course/components/course-format/course-format.html
+++ b/src/core/features/course/components/course-format/course-format.html
@@ -44,7 +44,7 @@
-
diff --git a/src/core/features/course/format/singleactivity/components/core-course-format-single-activity.html b/src/core/features/course/format/singleactivity/components/core-course-format-single-activity.html
index d5c1692c3..342f17c3e 100644
--- a/src/core/features/course/format/singleactivity/components/core-course-format-single-activity.html
+++ b/src/core/features/course/format/singleactivity/components/core-course-format-single-activity.html
@@ -1,6 +1,3 @@
-
-
-
diff --git a/src/core/features/course/format/singleactivity/components/singleactivity.ts b/src/core/features/course/format/singleactivity/components/singleactivity.ts
index 499d7f805..ac3be661c 100644
--- a/src/core/features/course/format/singleactivity/components/singleactivity.ts
+++ b/src/core/features/course/format/singleactivity/components/singleactivity.ts
@@ -20,7 +20,6 @@ import { CoreDynamicComponent } from '@components/dynamic-component/dynamic-comp
import { CoreCourseAnyCourseData } from '@features/courses/services/courses';
import { IonRefresher } from '@ionic/angular';
import { CoreCourseModuleCompletionData, CoreCourseSection } from '@features/course/services/course-helper';
-import { CoreBlockHelper } from '@features/block/services/block-helper';
import { CoreCourse } from '@features/course/services/course';
/**
@@ -46,7 +45,6 @@ export class CoreCourseFormatSingleActivityComponent implements OnChanges {
componentClass?: Type; // The class of the component to render.
data: Record = {}; // Data to pass to the component.
- hasBlocks = false;
/**
* @inheritdoc
@@ -60,8 +58,6 @@ export class CoreCourseFormatSingleActivityComponent implements OnChanges {
return;
}
- this.hasBlocks = await CoreBlockHelper.hasCourseBlocks(this.course.id);
-
// In single activity the module should only have 1 section and 1 module. Get the module.
const module = this.sections?.[0].modules?.[0];
@@ -93,11 +89,7 @@ export class CoreCourseFormatSingleActivityComponent implements OnChanges {
if (this.course) {
const courseId = this.course.id;
- await CoreCourse.invalidateCourseBlocks(courseId).then(async () => {
- this.hasBlocks = await CoreBlockHelper.hasCourseBlocks(courseId);
-
- return;
- });
+ await CoreCourse.invalidateCourseBlocks(courseId);
}
}