Add debug logs to reloadUsername in auth.service for improved error and data tracking
This commit is contained in:
parent
16cc57d774
commit
4222df87a3
|
|
@ -47,11 +47,14 @@ export class AuthService {
|
|||
}
|
||||
|
||||
private reloadUsername() {
|
||||
console.log("Reloading username");
|
||||
this.loginService.getUsername().pipe(
|
||||
tap(username => {
|
||||
console.log("Username: ", username);
|
||||
this._username.set(username.username);
|
||||
}),
|
||||
catchError(error => {
|
||||
console.log("Error: ", error);
|
||||
return throwError(() => error);
|
||||
})
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user