From b80d9416f692b27402aa157d822c2efb08e9e11e Mon Sep 17 00:00:00 2001 From: umasoodch Date: Wed, 1 Dec 2021 10:51:20 +0300 Subject: [PATCH] fixed sfh errors --- Mohem/src/app/app.component.ts | 1 - Mohem/src/app/home/home.page.ts | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Mohem/src/app/app.component.ts b/Mohem/src/app/app.component.ts index 90a6786c..5059b339 100644 --- a/Mohem/src/app/app.component.ts +++ b/Mohem/src/app/app.component.ts @@ -151,7 +151,6 @@ export class AppComponent implements OnInit { if (user) { console.log(user); this.userInfo = JSON.parse(localStorage.getItem('bussiness-card-info')); - console.log('ENAD TEST') console.log(this.userInfo) localStorage.setItem("digitalIDUser", JSON.stringify(user)); this.digitalIDUser = user//JSON.stringify(user); diff --git a/Mohem/src/app/home/home.page.ts b/Mohem/src/app/home/home.page.ts index 885de8ea..ea1dff06 100644 --- a/Mohem/src/app/home/home.page.ts +++ b/Mohem/src/app/home/home.page.ts @@ -477,13 +477,13 @@ export class HomePage implements OnInit { // tslint:disable-next-line: prefer-for-of for (let i = 0; i < result.GetMenuEntriesList.length; i++) { // tslint:disable-next-line: triple-equals - if (result.GetMenuEntriesList[i].FUNCTION_NAME == 'HMG_TKT_NEW_EIT_SS') { + if (result.GetMenuEntriesList[i].FUNCTION_NAME == 'HMG_TKT_NEW_SIT_SS') { this.ticketRequestObject = result.GetMenuEntriesList[i]; // tslint:disable-next-line: triple-equals } else if (result.GetMenuEntriesList[i].FUNCTION_NAME == 'HR_LOA_SS') { this.leaveRequestObject = result.GetMenuEntriesList[i]; // tslint:disable-next-line: triple-equals - } else if (result.GetMenuEntriesList[i].FUNCTION_NAME == 'HMG_OTL_MISSING_SWIPE_EIT_SS') { + } else if (result.GetMenuEntriesList[i].FUNCTION_NAME == 'HMG_OTL_MISSING_SWIPE_SIT_SS') { this.missingSwipeRequestObject = result.GetMenuEntriesList[i]; } } @@ -706,7 +706,7 @@ export class HomePage implements OnInit { selMenu.GetMenuEntriesList, 'menuEntries' ); - this.common.openEITPage(); + this.common.openSITPage(); } if (subMenu.REQUEST_TYPE === 'TIME_CARD') { this.common.openTimeCardPage();