diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 80c6655d7..386d50f27 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -271,7 +271,7 @@ export function PromptHints(props: { return () => window.removeEventListener("keydown", onKeyDown); // eslint-disable-next-line react-hooks/exhaustive-deps - }, [noPrompts, selectIndex]); + }, [props.prompts.length, selectIndex]); if (noPrompts) return null; return (