Skip to content

Commit

Permalink
Merge pull request #2316 from vishnubansaltarento/build-issues
Browse files Browse the repository at this point in the history
Build issues
  • Loading branch information
vishnubansaltarento authored Jul 15, 2024
2 parents e418ccf + 769e6cc commit 7053e51
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions project/ws/viewer/src/lib/viewer.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,12 +261,12 @@ export class ViewerComponent implements OnInit, OnDestroy, AfterViewChecked {
})

if (this.collectionId) {
if(!this.forPreview) {
if (!this.forPreview) {
const enrollCourseData = JSON.parse((localStorage.getItem('enrollmentMapData') as any))[this.collectionId]
if (enrollCourseData && (enrollCourseData.completionPercentage === 100 || enrollCourseData.status === 2)) {
this.downloadCertificate(enrollCourseData)
}
}
}
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/app/services/init.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,9 @@ export class InitService {
const publicConfig = await this.http
.get<NsInstanceConfig.IConfig>(`${this.configSvc.sitePath}/site.config.json`)
.toPromise()
if (publicConfig.npsCategory) {
localStorage.setItem('npsCategory', publicConfig.npsCategory)
}
// if (publicConfig.npsCategory) {
// localStorage.setItem('npsCategory', publicConfig.npsCategory)
// }

this.configSvc.instanceConfig = publicConfig
this.configSvc.rootOrg = publicConfig.rootOrg
Expand Down

0 comments on commit 7053e51

Please sign in to comment.