From e2636d062f112673b83f6e22ca83e94461de9aa1 Mon Sep 17 00:00:00 2001 From: Joseph J Helfenbein Date: Sun, 26 Jan 2025 07:10:53 -0500 Subject: [PATCH] fix for chat history --- src/app/(panels)/suite/patient/chat/page.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/(panels)/suite/patient/chat/page.jsx b/src/app/(panels)/suite/patient/chat/page.jsx index e1cacae..297cc3d 100644 --- a/src/app/(panels)/suite/patient/chat/page.jsx +++ b/src/app/(panels)/suite/patient/chat/page.jsx @@ -16,9 +16,7 @@ export default function Chat() { const { user } = useUser(); const [userData, setUserData] = useState(null); const [userQuery, setUserQuery] = useState(""); - const [chatHistory, setChatHistory] = useState< - { type: "user" | "bot", text: string } - >([]); + const [chatHistory, setChatHistory] = useState([{type: 'bot', text: 'Hello! How can I help you today?'}]); const [loading, setLoading] = useState(false); useEffect(() => {