Fix ReferenceError by wiring profile from AuthContext

cgen-b8b2715943bf4172ba88a98ce803c21b
This commit is contained in:
Builder.io 2025-10-19 01:00:37 +00:00
parent 7be1e9a738
commit e6c82c8c2a

View file

@ -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("");