Prettier format pending files
This commit is contained in:
parent
b8d43450a8
commit
76f9494548
3 changed files with 15 additions and 3 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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 () {
|
||||
|
|
|
|||
|
|
@ -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") || "[]");
|
||||
|
|
|
|||
Loading…
Reference in a new issue