diff --git a/src/app/pages/account/components/login.page.component.ts b/src/app/pages/account/components/login.page.component.ts index 2180fa6..db2eb15 100644 --- a/src/app/pages/account/components/login.page.component.ts +++ b/src/app/pages/account/components/login.page.component.ts @@ -32,7 +32,5 @@ export class LoginPageComponent implements OnInit, OnDestroy { ); } - ngOnDestroy(): void { - throw new Error('Method not implemented.'); - } + ngOnDestroy(): void {} } diff --git a/src/app/services/app.service.ts b/src/app/services/app.service.ts index 16c0abd..14e4440 100644 --- a/src/app/services/app.service.ts +++ b/src/app/services/app.service.ts @@ -31,6 +31,12 @@ export class AppService { initialize(): Promise { const initSession = new Promise(async (resolve, reject) => { try { + let loginSession = this.sessionStorageService.get( + AppKey.LoginSession + ); + + loginSession = loginSession || {}; + let deviceType: DeviceType; let desktopType: DesktopType; @@ -60,6 +66,7 @@ export class AppService { } this.sessionStorageService.set(AppKey.LoginSession, { + ...loginSession, deviceType, desktopType, companyGroupCode: this.companyGroupCode