diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index 444e78e2..c84dd802 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -291,6 +291,21 @@ export const aethexUserService = { } const normalized = normalizeProfile(data, user.email); + + // Auto-populate username for mrpiglr if empty + if ( + normalized && + user.email === "mrpiglr@gmail.com" && + !normalized.username + ) { + await this.updateProfile(user.id, { + username: "mrpiglr", + }).catch((err) => { + console.warn("[Profile] Failed to auto-populate mrpiglr username:", err); + }); + normalized.username = "mrpiglr"; + } + return await ensureDailyStreakForProfile(normalized); },