From df257c72a9255b8fded61237be3b787a7e9e1f2d Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 23:37:29 +0000 Subject: [PATCH] completionId: cgen-42eaaf27a9b74607981b4de7c3f42460 cgen-42eaaf27a9b74607981b4de7c3f42460 --- client/lib/aethex-database-adapter.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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; }