From 2196111bf2d5f29dde7e7c1e0c53559101bebd05 Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Tue, 25 Apr 2023 22:12:33 -0300 Subject: [PATCH] checking type from chat history --- src/frontend/src/modals/chatModal/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/modals/chatModal/index.tsx b/src/frontend/src/modals/chatModal/index.tsx index 32c370a22..2f614c545 100644 --- a/src/frontend/src/modals/chatModal/index.tsx +++ b/src/frontend/src/modals/chatModal/index.tsx @@ -73,7 +73,7 @@ export default function ChatModal({ type: string; data?:string; }) => { - if(chatItem.type==="file"){ + if(chatItem.type==="end"){ newChatHistory.push({ isSend: !chatItem.is_bot, message: chatItem.message,