We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 22c1b34 commit 70f8067Copy full SHA for 70f8067
1 file changed
src/app/page.tsx
@@ -22,9 +22,13 @@ export default function Home() {
22
23
const [showModal, setShowModal] = useState(false);
24
25
+ // Show the modal only after the search has finished (isLoading → false)
26
+ // so it never obscures the live agent workspace or appears before results.
27
+ // For instant failures (e.g. 429 rate-limit), isLoading is already false
28
+ // when the error is set, so the modal still appears immediately.
29
useEffect(() => {
- if (error) setShowModal(true);
- }, [error]);
30
+ if (error && !isLoading) setShowModal(true);
31
+ }, [error, isLoading]);
32
33
const validTickets = tickets.filter((t) => {
34
const isUnknown = (v: string) => !v || v.toLowerCase() === "unknown";
0 commit comments