@@ -13,7 +13,7 @@ import type { Account } from "@3rdweb-sdk/react/hooks/useApi";
13
13
import { ArrowRightIcon } from "lucide-react" ;
14
14
import Link from "next/link" ;
15
15
import { useCallback , useEffect , useRef , useState } from "react" ;
16
- import { useActiveAccount , useActiveWalletChain } from "thirdweb/react" ;
16
+ import { useActiveAccount } from "thirdweb/react" ;
17
17
import { type NebulaContext , promptNebula } from "../api/chat" ;
18
18
import { createSession , updateSession } from "../api/session" ;
19
19
import type { SessionInfo } from "../api/types" ;
@@ -32,7 +32,6 @@ export function ChatPageContent(props: {
32
32
initialPrompt : string | undefined ;
33
33
} ) {
34
34
const address = useActiveAccount ( ) ?. address ;
35
- const activeChain = useActiveWalletChain ( ) ;
36
35
const client = useThirdwebClient ( props . authToken ) ;
37
36
const [ userHasSubmittedMessage , setUserHasSubmittedMessage ] = useState ( false ) ;
38
37
const [ messages , setMessages ] = useState < Array < ChatMessage > > ( ( ) => {
@@ -133,14 +132,9 @@ export function ChatPageContent(props: {
133
132
// ignore local storage errors
134
133
}
135
134
136
- // else - use the active chain
137
- updatedContextFilters . chainIds = activeChain
138
- ? [ activeChain . id . toString ( ) ]
139
- : [ ] ;
140
-
141
135
return updatedContextFilters ;
142
136
} ) ;
143
- } , [ address , isNewSession , hasUserUpdatedContextFilters , activeChain ] ) ;
137
+ } , [ address , isNewSession , hasUserUpdatedContextFilters ] ) ;
144
138
145
139
const [ sessionId , _setSessionId ] = useState < string | undefined > (
146
140
props . session ?. id ,
0 commit comments