From 5c163148b30860f7d0fa335856e478976d0d3f1c Mon Sep 17 00:00:00 2001 From: vishnubansal Date: Mon, 15 Jul 2024 15:14:42 +0530 Subject: [PATCH 1/2] update for build issue --- project/ws/viewer/src/lib/viewer.component.ts | 4 ++-- src/app/services/init.service.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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..3071384d4 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 From 769e6cc12f8d7164d60ce73dcdc7e81547d17464 Mon Sep 17 00:00:00 2001 From: vishnubansal Date: Mon, 15 Jul 2024 16:07:02 +0530 Subject: [PATCH 2/2] update for nps category --- src/app/services/init.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/services/init.service.ts b/src/app/services/init.service.ts index 3071384d4..b0c6f627e 100755 --- a/src/app/services/init.service.ts +++ b/src/app/services/init.service.ts @@ -653,7 +653,7 @@ export class InitService { .toPromise() // if (publicConfig.npsCategory) { // localStorage.setItem('npsCategory', publicConfig.npsCategory) - // } + // } this.configSvc.instanceConfig = publicConfig this.configSvc.rootOrg = publicConfig.rootOrg