Skip to content

Commit 232de9a

Browse files
committed
Add a delay before the modal opens when usign the URL params
1 parent d669dda commit 232de9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

apps/webapp/app/components/AskAI.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,11 @@ export function AskAIProvider({ children, websiteId }: AskAIProviderProps) {
8686
});
8787

8888
const decodedAiHelp = decodeURIComponent(aiHelp);
89-
openAskAI(decodedAiHelp);
89+
90+
// Add a delay to avoid triggering hCaptcha bot detection
91+
setTimeout(() => {
92+
openAskAI(decodedAiHelp);
93+
}, 1000);
9094
}
9195
}, [searchParams, setSearchParams, openAskAI]);
9296

0 commit comments

Comments
 (0)