diff --git a/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx b/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx index 9382ebd77..ce06d2bcc 100644 --- a/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx +++ b/src/components/RoadmapAIChatHistory/RoadmapAIChatHistory.tsx @@ -10,6 +10,7 @@ import { queryClient } from '../../stores/query-client'; import { SearchAIChatHistory } from '../AIChatHistory/SearchAIChatHistory'; import { billingDetailsOptions } from '../../queries/billing'; import { UpgradeToProMessage } from '../AIChatHistory/ListChatHistory'; +import { showLoginPopup } from '../../lib/popup'; type RoadmapAIChatHistoryProps = { roadmapId: string; @@ -71,7 +72,17 @@ export function RoadmapAIChatHistory(props: RoadmapAIChatHistoryProps) { ); return ( - + { + if (!isLoggedIn()) { + showLoginPopup(); + return; + } + + setIsOpen(open); + }} + > Chat History