From 7d338caa0f68d2c8034adac402e60b41f3217c08 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 19 Oct 2025 05:05:14 +0000 Subject: [PATCH] Show loading state instead of denying during auth load cgen-5f5b953603414460b06b2177da17daad --- client/pages/ProjectsAdmin.tsx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/client/pages/ProjectsAdmin.tsx b/client/pages/ProjectsAdmin.tsx index f1d6047c..f6daf3ab 100644 --- a/client/pages/ProjectsAdmin.tsx +++ b/client/pages/ProjectsAdmin.tsx @@ -83,6 +83,23 @@ export default function ProjectsAdmin() { } }; + if (authLoading) { + return ( + +
+
+ + + Loading + Checking access… + + +
+
+
+ ); + } + if (!isOwner) { return (