Prettier format pending files

This commit is contained in:
Builder.io 2025-09-28 00:32:17 +00:00
parent b8d43450a8
commit 76f9494548
3 changed files with 15 additions and 3 deletions

View file

@ -43,7 +43,11 @@ export default function Layout({ children }: LayoutProps) {
window.scrollTo({ top: 0, behavior: "smooth" });
};
useEffect(() => { try { ensureDemoSeed(); } catch {} }, []);
useEffect(() => {
try {
ensureDemoSeed();
} catch {}
}, []);
return (
<div className="min-h-screen bg-aethex-gradient">

View file

@ -145,7 +145,11 @@ export const supabase = new Proxy(supabaseClient || {}, {
}
if (prop === "channel") {
if (isSupabaseConfigured && target && typeof target.channel === "function") {
if (
isSupabaseConfigured &&
target &&
typeof target.channel === "function"
) {
return target.channel.bind(target);
}
return function () {

View file

@ -26,7 +26,11 @@ export default function Admin() {
const { user, loading, roles } = useAuth();
const navigate = useNavigate();
const isOwner = Array.isArray(roles) && roles.includes("owner");
useEffect(() => { try { ensureDemoSeed(); } catch {} }, []);
useEffect(() => {
try {
ensureDemoSeed();
} catch {}
}, []);
const demoProfiles: any[] = (function () {
try {
return JSON.parse(localStorage.getItem("demo_profiles") || "[]");