diff --git a/project/ws/viewer/src/lib/viewer.component.ts b/project/ws/viewer/src/lib/viewer.component.ts index ce0c29ae6..cecec14f6 100755 --- a/project/ws/viewer/src/lib/viewer.component.ts +++ b/project/ws/viewer/src/lib/viewer.component.ts @@ -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) } - } + } } } diff --git a/src/app/services/init.service.ts b/src/app/services/init.service.ts index c679e19b2..b0c6f627e 100755 --- a/src/app/services/init.service.ts +++ b/src/app/services/init.service.ts @@ -651,9 +651,9 @@ export class InitService { const publicConfig = await this.http .get(`${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