From 4222df87a38ac6275ee62cc5074ceefc3c9e4e60 Mon Sep 17 00:00:00 2001 From: akastijn Date: Tue, 5 Aug 2025 23:26:23 +0200 Subject: [PATCH] Add debug logs to `reloadUsername` in `auth.service` for improved error and data tracking --- frontend/src/app/services/auth.service.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/app/services/auth.service.ts b/frontend/src/app/services/auth.service.ts index ad8dad8..bfbcec5 100644 --- a/frontend/src/app/services/auth.service.ts +++ b/frontend/src/app/services/auth.service.ts @@ -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); }) )