Skip to content

Commit

Permalink
Merge pull request #2305 from sunbird-cb/enrolledCourse-console-error…
Browse files Browse the repository at this point in the history
…-fix

enrolledCourseData condition update in widgit service for console error
  • Loading branch information
vishnubansaltarento authored Jul 11, 2024
2 parents 8da0953 + 153239e commit 061dadc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ export class WidgetContentService {
const enrolledCourseData: any = this.getEnrolledData(content.identifier)
if (enrolledCourseData) {
if (enrolledCourseData && enrolledCourseData.content && enrolledCourseData.content.status &&
content.status.toLowerCase() !== 'retired') {
enrolledCourseData.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 061dadc

Please sign in to comment.