diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/components/navbar/navbar.component.html | 2 | ||||
| -rw-r--r-- | src/app/components/navbar/navbar.component.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/app/components/navbar/navbar.component.html b/src/app/components/navbar/navbar.component.html index 9fcd704..29118e6 100644 --- a/src/app/components/navbar/navbar.component.html +++ b/src/app/components/navbar/navbar.component.html @@ -8,7 +8,7 @@ </div> <div id="nav-username" class="font-size-dot9 nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" (click)="goToProfile()" *ngIf="loggedIn"> <div class="padding-small"> - Konstantin + @{{ user.userName }} </div> </div> <div class="nav-item flex-col border-radius-small light-hover hover-half-opacity click-effect" (click)="goToFeed()"> diff --git a/src/app/components/navbar/navbar.component.ts b/src/app/components/navbar/navbar.component.ts index b62d8e0..85f07d1 100644 --- a/src/app/components/navbar/navbar.component.ts +++ b/src/app/components/navbar/navbar.component.ts @@ -20,6 +20,7 @@ export class NavbarComponent implements OnInit { this.loggedIn = this._tokenService.getTokenFromSessionStorage() !== ''; this.user = this._userService.getDefaultUser(); + this.user.userName = ''; // so you don't always see a flash of 'Gosho' this._userService.getUserFromSessionStorageRequest().subscribe({ next: (res: object) => { |
