BugFix: IP Adresse & Subject instead of BehaviourSubject
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user