diff --git a/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts b/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts index d8902326a..07022912d 100644 --- a/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts +++ b/authority-portal-frontend/src/app/core/api/fake-backend/impl/fake-users.ts @@ -297,9 +297,11 @@ export const TEST_USERS: UserInfo[] = [ /** * Currently "logged-in user" for local dev UI */ -let currentlyLoggedInUser: UserInfo = buildUserInfo( - ALL_USERS['00000000-0000-0000-0000-000000000001'], -); +// let currentlyLoggedInUser: UserInfo = buildUserInfo( +// ALL_USERS['00000000-0000-0000-0000-000000000001'], +// ); + +let currentlyLoggedInUser = buildUnauthenticatedUserInfo(); /** * Update currently logged-in User for local dev UI diff --git a/authority-portal-frontend/src/app/pages/control-center-user-profile-page/state/control-center-user-profile-page-state-impl.ts b/authority-portal-frontend/src/app/pages/control-center-user-profile-page/state/control-center-user-profile-page-state-impl.ts index 8a1d01ebd..68f0f0ccd 100644 --- a/authority-portal-frontend/src/app/pages/control-center-user-profile-page/state/control-center-user-profile-page-state-impl.ts +++ b/authority-portal-frontend/src/app/pages/control-center-user-profile-page/state/control-center-user-profile-page-state-impl.ts @@ -49,7 +49,6 @@ export class ControlCenterUserProfilePageStateImpl { @Action(Reset) onReset(ctx: Ctx, action: Reset): Observable { return this.globalStateUtils.userInfo$.pipe( - take(1), switchMap((userInfo) => this.apiService.getUserDetailDto(userInfo.userId), ),