slight fixes, checking for null case

This commit is contained in:
ManishMadan2882
2024-02-07 05:09:12 +05:30
parent 0ce39e7f52
commit 615d549494

View File

@@ -41,10 +41,9 @@ export default function Conversation() {
useEffect(() => {
return () => {
fetchStream.current.abort(); //abort previous stream
fetchStream.current && fetchStream.current.abort(); //abort previous stream
}
}, [conversationId])
useEffect(() => {
const observerCallback: IntersectionObserverCallback = (entries) => {
entries.forEach((entry) => {