fix: fix login/register #172

Merged
jleibl merged 3 commits from bugfix/fix-login into main 2025-05-07 15:30:28 +00:00
Showing only changes of commit 88c2f49b03 - Show all commits

View file

@ -1,4 +1,11 @@
import { ChangeDetectionStrategy, Component, inject, OnDestroy, OnInit, signal } from '@angular/core';
import {
ChangeDetectionStrategy,
Component,
inject,
OnDestroy,
OnInit,
signal,
} from '@angular/core';
import { RouterModule } from '@angular/router';
import { AuthService } from '@service/auth.service';
import { Subscription } from 'rxjs';
@ -21,7 +28,7 @@ export class NavbarComponent implements OnInit, OnDestroy {
ngOnInit() {
this.authSubscription = this.authService.userSubject.subscribe({
next: user => {
next: (user) => {
this.balance.set(user?.balance ?? 0);
},
});