diff --git a/src/components/TopicDetail/TopicDetailAI.tsx b/src/components/TopicDetail/TopicDetailAI.tsx index e34ef8193..339ebd084 100644 --- a/src/components/TopicDetail/TopicDetailAI.tsx +++ b/src/components/TopicDetail/TopicDetailAI.tsx @@ -290,21 +290,16 @@ export function TopicDetailAI(props: TopicDetailAIProps) { - {nodeTextParts.slice(1).map((text, index) => { - // -2 because we are removing roadmap title from the list - const isLast = index === nodeTextParts.length - 2; - + {nodeTextParts.slice(-2).map((text, index) => { return ( <> {text} - {!isLast && ( - - )} + ); })}