Skip to content

Commit

Permalink
fix: user Profile not updating
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Oct 15, 2024
1 parent 4e4fc7e commit 78b4d77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export class ControlCenterUserProfilePageStateImpl {
@Action(Reset)
onReset(ctx: Ctx, action: Reset): Observable<never> {
return this.globalStateUtils.userInfo$.pipe(
take(1),
switchMap((userInfo) =>
this.apiService.getUserDetailDto(userInfo.userId),
),
Expand Down

0 comments on commit 78b4d77

Please sign in to comment.