File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
apps/webapp/app/components Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -91,19 +91,15 @@ function AskAIProvider({ websiteId }: AskAIProviderProps) {
9191 useEffect ( ( ) => {
9292 const aiHelp = searchParams . get ( "aiHelp" ) ;
9393 if ( aiHelp ) {
94- const decodedAiHelp = decodeURIComponent ( aiHelp ) ;
95-
9694 // Delay to avoid hCaptcha bot detection
97- const timeoutId = window . setTimeout ( ( ) => openAskAI ( decodedAiHelp ) , 1000 ) ;
95+ window . setTimeout ( ( ) => openAskAI ( aiHelp ) , 1000 ) ;
9896
9997 // Clone instead of mutating in place
10098 const next = new URLSearchParams ( searchParams ) ;
10199 next . delete ( "aiHelp" ) ;
102100 setSearchParams ( next ) ;
103-
104- return ( ) => clearTimeout ( timeoutId ) ;
105101 }
106- } , [ searchParams . toString ( ) , openAskAI ] ) ;
102+ } , [ searchParams , openAskAI ] ) ;
107103
108104 return (
109105 < KapaProvider
You can’t perform that action at this time.
0 commit comments