diff --git a/pitch-deck/components/ChatFAB.tsx b/pitch-deck/components/ChatFAB.tsx index 26006af..d6f34f9 100644 --- a/pitch-deck/components/ChatFAB.tsx +++ b/pitch-deck/components/ChatFAB.tsx @@ -286,10 +286,11 @@ export default function ChatFAB({ } // If FAQ matched and has a goto_slide, add a GOTO marker to the response - if (faqMatch?.goto_slide) { - const gotoIdx = SLIDE_ORDER.indexOf(faqMatch.goto_slide) + const topMatch = faqMatches[0] + if (topMatch?.goto_slide) { + const gotoIdx = SLIDE_ORDER.indexOf(topMatch.goto_slide) if (gotoIdx >= 0) { - const suffix = `\n\n[GOTO:${faqMatch.goto_slide}]` + const suffix = `\n\n[GOTO:${topMatch.goto_slide}]` content += suffix setMessages(prev => { const updated = [...prev]