From 0cae26bf1112e95e99dd3c0e0afb0db407d59682 Mon Sep 17 00:00:00 2001
From: chris <kokosias@yahoo.gr>
Date: Tue, 23 Apr 2024 14:18:40 +0300
Subject: [PATCH] console.log for active comment

---
 .../src/CommentsService/components/ConnectedComment.js         | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js b/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js
index 979fef877..97d1b0929 100644
--- a/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js
+++ b/wax-prosemirror-services/src/CommentsService/components/ConnectedComment.js
@@ -56,6 +56,7 @@ export default ({ comment, top, commentId, recalculateTops, users }) => {
   useEffect(() => {
     setIsActive(false);
     recalculateTops();
+    console.log(activeComment, commentId, activeComment.id);
     if (activeComment && commentId === activeComment.id) {
       setIsActive(true);
     }
@@ -144,7 +145,7 @@ export default ({ comment, top, commentId, recalculateTops, users }) => {
       });
     }
   };
-
+  console.log(isActive);
   const MemorizedComponent = useMemo(
     () => (
       <ConnectedCommentStyled
-- 
GitLab