From a7068deb5edcb1195257f121f2c41e4a9d789c1a Mon Sep 17 00:00:00 2001 From: Nik720 Date: Fri, 15 Jul 2022 13:07:02 +0530 Subject: [PATCH] Issue #SB-30441 fix: fixed guest user filter issue --- .../client/src/app/modules/core/services/user/user.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/client/src/app/modules/core/services/user/user.service.ts b/src/app/client/src/app/modules/core/services/user/user.service.ts index e21c0e3cd57..2d8cf58d68c 100644 --- a/src/app/client/src/app/modules/core/services/user/user.service.ts +++ b/src/app/client/src/app/modules/core/services/user/user.service.ts @@ -463,6 +463,7 @@ export class UserService { data: request }; return this.publicDataService.post(options).pipe(map((response: ServerResponse) => { + localStorage.setItem('guestUserDetails', JSON.stringify(request.request)); this.getGuestUser().subscribe(); return response; })); @@ -483,6 +484,9 @@ export class UserService { if (this.isDesktopApp) { return this.getAnonymousUserPreference().pipe(map((response: ServerResponse) => { this.guestUserProfile = _.get(response, 'result'); + if(!localStorage.getItem('guestUserDetails')) { + localStorage.setItem('guestUserDetails', JSON.stringify(this.guestUserProfile)); + } this._guestData$.next({ userProfile: this.guestUserProfile }); return this.guestUserProfile; }));