diff --git a/src/Components/Sticky/StickyFooter.jsx b/src/Components/Sticky/StickyFooter.jsx index 47b35524..6efe8b55 100644 --- a/src/Components/Sticky/StickyFooter.jsx +++ b/src/Components/Sticky/StickyFooter.jsx @@ -54,7 +54,7 @@ const StickyFooter = ({id, likes, setViewComment, comments, user, article}) => { handleComment()} />  {" "} - {comments.length - 1 || 0} + {comments.length == 0 ? comments.length - 1 : 0}