diff --git a/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx b/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx index 76a5247bd08..5f9b74316aa 100644 --- a/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx +++ b/apps/dashboard/src/app/nebula-app/(app)/components/ChatPageContent.tsx @@ -13,7 +13,7 @@ import type { Account } from "@3rdweb-sdk/react/hooks/useApi"; import { ArrowRightIcon } from "lucide-react"; import Link from "next/link"; import { useCallback, useEffect, useRef, useState } from "react"; -import { useActiveAccount, useActiveWalletChain } from "thirdweb/react"; +import { useActiveAccount } from "thirdweb/react"; import { type NebulaContext, promptNebula } from "../api/chat"; import { createSession, updateSession } from "../api/session"; import type { SessionInfo } from "../api/types"; @@ -32,7 +32,6 @@ export function ChatPageContent(props: { initialPrompt: string | undefined; }) { const address = useActiveAccount()?.address; - const activeChain = useActiveWalletChain(); const client = useThirdwebClient(props.authToken); const [userHasSubmittedMessage, setUserHasSubmittedMessage] = useState(false); const [messages, setMessages] = useState>(() => { @@ -133,14 +132,9 @@ export function ChatPageContent(props: { // ignore local storage errors } - // else - use the active chain - updatedContextFilters.chainIds = activeChain - ? [activeChain.id.toString()] - : []; - return updatedContextFilters; }); - }, [address, isNewSession, hasUserUpdatedContextFilters, activeChain]); + }, [address, isNewSession, hasUserUpdatedContextFilters]); const [sessionId, _setSessionId] = useState( props.session?.id,