From e6c82c8c2aa3f277adc0ee44b4fd77ed27828745 Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sun, 19 Oct 2025 01:00:37 +0000 Subject: [PATCH] Fix ReferenceError by wiring profile from AuthContext cgen-b8b2715943bf4172ba88a98ce803c21b --- client/pages/Community.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/pages/Community.tsx b/client/pages/Community.tsx index c6c4517e..3ee7988f 100644 --- a/client/pages/Community.tsx +++ b/client/pages/Community.tsx @@ -25,6 +25,7 @@ import LoadingScreen from "@/components/LoadingScreen"; import { aethexToast } from "@/lib/aethex-toast"; import { cn } from "@/lib/utils"; import { Link, useLocation, useNavigate } from "react-router-dom"; +import { useAuth } from "@/contexts/AuthContext"; import FeaturedStudiosGrid from "@/components/community/FeaturedStudiosGrid"; import { useCallback, @@ -644,6 +645,7 @@ function PollCard({ poll, selectedOption, onSelect }: PollCardProps) { } export default function Community() { + const { profile } = useAuth(); const [isLoading, setIsLoading] = useState(true); const toastShownRef = useRef(false); const [knowledgeQuery, setKnowledgeQuery] = useState("");