- {{ 'addon.mod_choice.yourselection' | translate }}
+ {{ 'addon.mod_choice.yourselection' | translate }}
{{ 'addon.mod_choice.expired' | translate:{$a: choice.closeTimeReadable} }}
diff --git a/src/addon/mod/choice/components/index/index.ts b/src/addon/mod/choice/components/index/index.ts
index 28c178bea..3c52e925f 100644
--- a/src/addon/mod/choice/components/index/index.ts
+++ b/src/addon/mod/choice/components/index/index.ts
@@ -62,8 +62,13 @@ export class AddonModChoiceIndexComponent extends CoreCourseModuleMainActivityCo
this.userId = this.sitesProvider.getCurrentSiteUserId();
this.loadContent(false, true).then(() => {
+ if (!this.choice) {
+ return;
+ }
this.choiceProvider.logView(this.choice.id).then(() => {
this.courseProvider.checkModuleCompletion(this.courseId, this.module.completionstatus);
+ }).catch((error) => {
+ // Ignore errors.
});
});
}
@@ -74,11 +79,16 @@ export class AddonModChoiceIndexComponent extends CoreCourseModuleMainActivityCo
* @return {Promise