diff --git a/front/src/modules/activities/right-drawer/components/CommentThread.tsx b/front/src/modules/activities/right-drawer/components/CommentThread.tsx index d9c00099d..9deeba785 100644 --- a/front/src/modules/activities/right-drawer/components/CommentThread.tsx +++ b/front/src/modules/activities/right-drawer/components/CommentThread.tsx @@ -100,7 +100,7 @@ export function CommentThread({ }); const commentThread = data?.findManyCommentThreads[0]; - const [title, setTitle] = useState(undefined); + const [title, setTitle] = useState(null); const [hasUserManuallySetTitle, setHasUserManuallySetTitle] = useState(false); @@ -128,10 +128,10 @@ export function CommentThread({ } useEffect(() => { - if (commentThread && !title) { + if (commentThread) { setTitle(commentThread?.title ?? ''); } - }, [commentThread, title]); + }, [commentThread]); if (!commentThread) { return <>;