From 953df625400ddc62b47b5291c728f7b2c7d96604 Mon Sep 17 00:00:00 2001 From: Afnan C <98315899+Cafnanc@users.noreply.github.com> Date: Tue, 6 Aug 2024 17:33:17 +0530 Subject: [PATCH] Update otp.page.ts --- src/app/modules/auth/otp/otp.page.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/modules/auth/otp/otp.page.ts b/src/app/modules/auth/otp/otp.page.ts index 5acf0a1b..85941bad 100644 --- a/src/app/modules/auth/otp/otp.page.ts +++ b/src/app/modules/auth/otp/otp.page.ts @@ -7,6 +7,7 @@ import { ProfileService } from 'src/app/core/services/profile/profile.service'; import { CommonRoutes } from 'src/global.routes'; import { Location } from '@angular/common'; import { RecaptchaComponent } from 'ng-recaptcha'; +import { environment } from 'src/environments/environment'; @Component({ selector: 'app-otp', @@ -25,7 +26,7 @@ export class OtpPage implements OnInit { 'border-radius': '8px' } }; - siteKey = window['env']?.recaptchaSiteKey ? window['env']?.recaptchaSiteKey.recaptchaSiteKey :"" + siteKey = environment?.recaptchaSiteKey ? environment?.recaptchaSiteKey :"" resetPasswordData = { email: null, password: null, otp: null }; public headerConfig: any = { // menu: true, @@ -43,8 +44,8 @@ export class OtpPage implements OnInit { labels; signupData: any; checked: boolean = false; - privacyPolicyUrl = window['env'].privacyPolicyUrl; - termsOfServiceUrl = window['env'].termsOfServiceUrl; + privacyPolicyUrl = environment.privacyPolicyUrl; + termsOfServiceUrl = environment.termsOfServiceUrl; captchaToken:any=""; recaptchaResolved: boolean = this.siteKey ? false : true; showOtp:any = false;