diff --git a/packages/react/src/views/ChatBody/ChatBody.js b/packages/react/src/views/ChatBody/ChatBody.js index 23d70a785..721c2d2dc 100644 --- a/packages/react/src/views/ChatBody/ChatBody.js +++ b/packages/react/src/views/ChatBody/ChatBody.js @@ -171,7 +171,7 @@ const ChatBody = ({ setScrollPosition(messageListRef.current.scrollTop); setIsUserScrolledUp( messageListRef.current.scrollTop + messageListRef.current.clientHeight < - messageListRef.current.scrollHeight + messageListRef.current.scrollHeight ); } @@ -202,7 +202,7 @@ const ChatBody = ({ if (announcementRef.current) { setIsOverflowing( announcementRef.current.scrollWidth > - announcementRef.current.clientWidth + announcementRef.current.clientWidth ); } };