Skip to content

Commit

Permalink
Merge pull request #8189 from Nik720/SB-30441
Browse files Browse the repository at this point in the history
Issue #SB-30441 fix: fixed guest user filter issue
  • Loading branch information
Rajesh Kumaravel authored Jul 15, 2022
2 parents c2d7d0f + a7068de commit 75719d4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}));
Expand All @@ -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;
}));
Expand Down

0 comments on commit 75719d4

Please sign in to comment.