diff --git a/src/components/RoadmapAIChat/RoadmapAIChat.tsx b/src/components/RoadmapAIChat/RoadmapAIChat.tsx index a126d0cfa..b984c52f9 100644 --- a/src/components/RoadmapAIChat/RoadmapAIChat.tsx +++ b/src/components/RoadmapAIChat/RoadmapAIChat.tsx @@ -16,7 +16,7 @@ import { Loader2Icon, LockIcon, PauseCircleIcon, - SendIcon + SendIcon, } from 'lucide-react'; import { ChatEditor } from '../ChatEditor/ChatEditor'; import { roadmapTreeMappingOptions } from '../../queries/roadmap-tree'; @@ -394,90 +394,92 @@ export function RoadmapAIChat(props: RoadmapAIChatProps) { )} -
- { - if ( - isStreamingMessage || - abortControllerRef.current || - !isLoggedIn() || - isDataLoading || - isEmptyContent(content) - ) { - return; - } + {!isLoading && ( +
+ { + if ( + isStreamingMessage || + abortControllerRef.current || + !isLoggedIn() || + isDataLoading || + isEmptyContent(content) + ) { + return; + } - handleChatSubmit(content); - }} - /> + handleChatSubmit(content); + }} + /> - {isLimitExceeded && isLoggedIn() && ( -
- -

- Limit reached for today - {isPaidUser ? '. Please wait until tomorrow.' : ''} -

- {!isPaidUser && ( + {isLimitExceeded && isLoggedIn() && ( +
+ +

+ Limit reached for today + {isPaidUser ? '. Please wait until tomorrow.' : ''} +

+ {!isPaidUser && ( + + )} +
+ )} + + {!isLoggedIn() && ( +
+ +

Please login to continue

- )} -
- )} - - {!isLoggedIn() && ( -
- -

Please login to continue

- -
- )} - -
)} - -
+ + +
+ )} );