@@ -13,7 +13,7 @@ import type { Account } from "@3rdweb-sdk/react/hooks/useApi";
1313import { ArrowRightIcon } from "lucide-react" ;
1414import Link from "next/link" ;
1515import { useCallback , useEffect , useRef , useState } from "react" ;
16- import { useActiveAccount , useActiveWalletChain } from "thirdweb/react" ;
16+ import { useActiveAccount } from "thirdweb/react" ;
1717import { type NebulaContext , promptNebula } from "../api/chat" ;
1818import { createSession , updateSession } from "../api/session" ;
1919import type { SessionInfo } from "../api/types" ;
@@ -32,7 +32,6 @@ export function ChatPageContent(props: {
3232 initialPrompt : string | undefined ;
3333} ) {
3434 const address = useActiveAccount ( ) ?. address ;
35- const activeChain = useActiveWalletChain ( ) ;
3635 const client = useThirdwebClient ( props . authToken ) ;
3736 const [ userHasSubmittedMessage , setUserHasSubmittedMessage ] = useState ( false ) ;
3837 const [ messages , setMessages ] = useState < Array < ChatMessage > > ( ( ) => {
@@ -133,14 +132,9 @@ export function ChatPageContent(props: {
133132 // ignore local storage errors
134133 }
135134
136- // else - use the active chain
137- updatedContextFilters . chainIds = activeChain
138- ? [ activeChain . id . toString ( ) ]
139- : [ ] ;
140-
141135 return updatedContextFilters ;
142136 } ) ;
143- } , [ address , isNewSession , hasUserUpdatedContextFilters , activeChain ] ) ;
137+ } , [ address , isNewSession , hasUserUpdatedContextFilters ] ) ;
144138
145139 const [ sessionId , _setSessionId ] = useState < string | undefined > (
146140 props . session ?. id ,
0 commit comments