diff --git a/client/components/Layout.tsx b/client/components/Layout.tsx index 38c8db7b..90313eab 100644 --- a/client/components/Layout.tsx +++ b/client/components/Layout.tsx @@ -12,6 +12,8 @@ import { } from "@/components/ui/dropdown-menu"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { User, Settings, LogOut, Bell } from "lucide-react"; +import { useEffect } from "react"; +import { ensureDemoSeed } from "@/lib/demo-feed"; interface LayoutProps { children: React.ReactNode; @@ -41,6 +43,8 @@ export default function Layout({ children }: LayoutProps) { window.scrollTo({ top: 0, behavior: "smooth" }); }; + useEffect(() => { try { ensureDemoSeed(); } catch {} }, []); + return (