diff --git a/src/components/GenerateRoadmap/GenerateRoadmap.tsx b/src/components/GenerateRoadmap/GenerateRoadmap.tsx index c7a846d89..484571293 100644 --- a/src/components/GenerateRoadmap/GenerateRoadmap.tsx +++ b/src/components/GenerateRoadmap/GenerateRoadmap.tsx @@ -367,7 +367,7 @@ export function GenerateRoadmap() { limitUsed={roadmapLimitUsed} onLoadTopic={(topic: string) => { setRoadmapTopic(topic); - loadTopic(topic); + loadTopic(topic).finally(() => {}); }} /> ); diff --git a/src/components/GenerateRoadmap/RoadmapTopicDetail.tsx b/src/components/GenerateRoadmap/RoadmapTopicDetail.tsx index 1e37ad7cf..4e4ec5085 100644 --- a/src/components/GenerateRoadmap/RoadmapTopicDetail.tsx +++ b/src/components/GenerateRoadmap/RoadmapTopicDetail.tsx @@ -40,12 +40,12 @@ export function RoadmapTopicDetail(props: RoadmapTopicDetailProps) { const generateAiRoadmapTopicContent = async () => { setIsLoading(true); setError(''); - - if (topicLimitUsed >= topicLimit) { - setError('You have reached the limit of topics'); - setIsLoading(false); - return; - } + // + // if (topicLimitUsed >= topicLimit) { + // setError('Maximum limit reached'); + // setIsLoading(false); + // return; + // } if (!roadmapId || !nodeTitle) { setIsLoading(false); @@ -129,7 +129,7 @@ export function RoadmapTopicDetail(props: RoadmapTopicDetailProps) { tabIndex={0} className="fixed right-0 top-0 z-40 h-screen w-full overflow-y-auto bg-white p-4 focus:outline-0 sm:max-w-[600px] sm:p-6" > -