diff --git a/support-portal-frontend/src/app/service/user.service.ts b/support-portal-frontend/src/app/service/user.service.ts index 22e5968..474a793 100644 --- a/support-portal-frontend/src/app/service/user.service.ts +++ b/support-portal-frontend/src/app/service/user.service.ts @@ -97,8 +97,10 @@ export class UserService { if (foundUser) return foundUser; return this.getAllUsers() - .pipe(map((page: UserPage, idx: number) => page.content)) - .pipe(map(users => users.find(u => u.userId === id)!)); + .pipe( + map((page: UserPage, idx: number) => page.content), + map(users => users.find(u => u.userId === id)!) + ); } }