Skip to content

Commit

Permalink
fix using take(2)
Browse files Browse the repository at this point in the history
  • Loading branch information
illfixit committed Oct 25, 2024
1 parent 1891cbe commit 4d75349
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion authority-portal-frontend/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*ngIf="appConfig.useFakeBackend"
class="absolute t-[5px] w-full flex flex-row justify-end"
style="z-index: 9999">
<!-- <app-fake-backend-user-switcher></app-fake-backend-user-switcher> -->
<app-fake-backend-user-switcher></app-fake-backend-user-switcher>
</div>
<app-e2e-dev-user-switcher
*ngIf="appConfig.useLocalBackend"></app-e2e-dev-user-switcher>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export class ControlCenterUserProfilePageStateImpl {
@Action(Reset)
onReset(ctx: Ctx, action: Reset): Observable<never> {
return this.globalStateUtils.userInfo$.pipe(
take(2),
switchMap((userInfo) =>
this.apiService.getUserDetailDto(userInfo.userId),
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div
class="flex flex-col justify-center items-center h-screen w-screen top-0 left-0 absolute">
<h1 class="full-screen-end-title">Page Not Found</h1>
<h1 class="full-screen-end-title">Oops</h1>
<p class="full-screen-end-prose">
We're sorry, but the page you requested could not be found.
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ import {Title} from '@angular/platform-browser';
})
export class PageNotFoundPageComponent {
constructor(private titleService: Title) {
this.titleService.setTitle('404 - Page Not Found');
this.titleService.setTitle('Page Not Found');
}
}

0 comments on commit 4d75349

Please sign in to comment.