Prevent username retrieval if user is not authenticated and fix variable naming in DiscordAppealMapper.

This commit is contained in:
stijn committed 2025-11-23 05:03:42 +01:00
1 parent d69ef2cd20
commit 1d76895cbb
2 files changed
+4 -1

No files matched your search

@@ -53,6 +53,9 @@ export class AuthService {
console.log("Reloading username for localhost");
this._username.set('developer');
}
if (!this.isAuthenticated$()) {
return;
}
this.loginService.getUsername().subscribe({
next: (username) => {
console.log("Username retrieved: " + username.username);