diff --git a/src/components/Chat.jsx b/src/components/Chat.jsx
index 1fd6d45..991471d 100644
--- a/src/components/Chat.jsx
+++ b/src/components/Chat.jsx
@@ -115,27 +115,27 @@ const Chat = () => {
);
}}
>
-
How do I register a trademark in USA
+ How do I register a trademark in USA?
{
handlePredefinedQuestionClick(
- "How do I register an Industrial act in Nigeria?"
+ "How do I register an Industrial design in Nigeria?"
);
}}
>
-
How do I register an Industrial act in Nigeria?
+
How do I register an Industrial design in Nigeria?
{
handlePredefinedQuestionClick(
- "What is the duration of Copyright in the UK?"
+ "What is the duration of Copyright in the United Kingdom?"
);
}}
>
-
What is the duration of Copyright in the UK
+
What is the duration of Copyright in the United Kingdom?
@@ -170,11 +170,12 @@ const Chat = () => {
)}
- {entry.citations.length > 0 && (
+ {/* Only show citations if they exist */}
+ {entry.citations && entry.citations.length > 0 && (
<>
Citation:
- {entry.citations.map((citation, index) => {
- return (
+ {entry.citations.map(
+ (citation, index) =>
entry.response.includes(`[${index + 1}]`) && (
)
- );
- })}
+ )}
>
)}
-
- {/* */}
);