diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index eabc5f6d..c13cfc3f 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -141,9 +141,14 @@ const ensureDailyStreakForProfile = async ( }; }; -export function checkProfileComplete(p?: AethexUserProfile | null): boolean { +export function checkProfileComplete(p?: AethexUserProfile | null, roles?: string[]): boolean { if (!p) return false; + // Admins/owners are always considered complete + if (roles?.some((r) => ["owner", "admin", "founder", "staff"].includes(r.toLowerCase()))) { + return true; + } + if ((p as any).onboarded === true) { return true; }