slight fixes, checking for null case

This commit is contained in:
ManishMadan2882 committed 2024-02-07 05:09:12 +05:30
1 parent 0ce39e7f52
commit 615d549494
1 file changed
+1 -2
+1 -2
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) => {