From f99962960733d4a70cd843ec0b98a35950e26a84 Mon Sep 17 00:00:00 2001 From: Roie Natan Date: Tue, 17 Oct 2023 14:35:40 +0100 Subject: [PATCH] . --- .../ChatComponent/components/ChatContent/ChatContent.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx b/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx index 3cce86ea79..17c3d6c60a 100644 --- a/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx +++ b/src/pages/common/components/ChatComponent/components/ChatContent/ChatContent.tsx @@ -101,15 +101,9 @@ const ChatContent: ForwardRefRenderFunction< useEffect(() => { if (messages) { - console.log(messages); forceUpdate(); } - - if (dateList) { - console.log(dateList); - forceUpdate(); - } - }, [messages, dateList]); + }, [messages]); const [highlightedMessageId, setHighlightedMessageId] = useState( () => (typeof messageIdParam === "string" && messageIdParam) || null,