BugFix: IP Adresse & Subject instead of BehaviourSubject

This commit is contained in:
2024-09-20 15:59:45 +02:00
parent 3e84b82c92
commit 16b880384b
16 changed files with 36 additions and 330 deletions

View File

@@ -77,9 +77,7 @@ export class HeaderComponent {
}, 10);
this.sharedService.currentProfilePhoto.subscribe(photoUrl => {
if (photoUrl) {
this.profileUrl = photoUrl;
}
this.profileUrl = photoUrl;
});
this.checkCurrentRoute(this.router.url);
@@ -91,9 +89,7 @@ export class HeaderComponent {
});
this.userService.currentUser.pipe(untilDestroyed(this)).subscribe(u => {
if (u !== undefined) {
this.user = u;
}
this.user = u;
});
}
private checkCurrentRoute(url: string): void {