diff --git a/src/views/preview/presentation.jsx b/src/views/preview/presentation.jsx index 65a1db68b..c00334f8b 100644 --- a/src/views/preview/presentation.jsx +++ b/src/views/preview/presentation.jsx @@ -90,6 +90,7 @@ const PreviewPresentation = ({ onUpdate }) => { const shareDate = ((projectInfo.history && projectInfo.history.shared)) ? projectInfo.history.shared : ''; + const loadedCommentCount = comments.length + Object.keys(replies).reduce((acc, id) => acc + replies[id].length, 0); return (
{!isShared && ( @@ -383,7 +384,7 @@ const PreviewPresentation = ({ onRestore={onRestoreComment} /> ))} - {comments.length < projectInfo.stats.comments && + {loadedCommentCount < projectInfo.stats.comments &&