Skip to content

Commit

Permalink
Merge pull request #2304 from sunbird-cb/learn-advisorylint-test
Browse files Browse the repository at this point in the history
lint error fix
  • Loading branch information
vishnubansaltarento authored Jul 11, 2024
2 parents bc060f2 + e311477 commit 8da0953
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit 8da0953

Please sign in to comment.