diff --git a/src/components/RoadmapAIChat/RoadmapAIChat.tsx b/src/components/RoadmapAIChat/RoadmapAIChat.tsx index bc64282b4..eb4198cc9 100644 --- a/src/components/RoadmapAIChat/RoadmapAIChat.tsx +++ b/src/components/RoadmapAIChat/RoadmapAIChat.tsx @@ -571,6 +571,11 @@ export function RoadmapAIChat(props: RoadmapAIChatProps) { editorRef={editorRef} roadmapId={roadmapId} onSubmit={(content) => { + if (!isLoggedIn()) { + showLoginPopup(); + return; + } + if ( isStreamingMessage || abortControllerRef.current || @@ -608,29 +613,14 @@ export function RoadmapAIChat(props: RoadmapAIChatProps) { )} - {!isLoggedIn() && ( -
- -

- Please login to continue -

- -
- )} -