diff --git a/library/ws-widget/collection/src/lib/_services/widget-content.service.ts b/library/ws-widget/collection/src/lib/_services/widget-content.service.ts index a92d36e7a..40e10161f 100644 --- a/library/ws-widget/collection/src/lib/_services/widget-content.service.ts +++ b/library/ws-widget/collection/src/lib/_services/widget-content.service.ts @@ -462,7 +462,8 @@ export class WidgetContentService { async getResourseLink(content: any) { const enrolledCourseData: any = this.getEnrolledData(content.identifier) if (enrolledCourseData) { - if (enrolledCourseData && enrolledCourseData.content && enrolledCourseData.content.status && content.status.toLowerCase() !== 'retired') { + if (enrolledCourseData && enrolledCourseData.content && enrolledCourseData.content.status && + content.status.toLowerCase() !== 'retired') { if (enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.BLENDED_PROGRAM || enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.INVITE_ONLY_PROGRAM || enrolledCourseData.content.courseCategory === NsContent.ECourseCategory.MODERATED_PROGRAM ||