diff options
| -rw-r--r-- | layouts/_partials/scripts/action-menu-js.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/_partials/scripts/action-menu-js.html b/layouts/_partials/scripts/action-menu-js.html index 7c072631..699496dd 100644 --- a/layouts/_partials/scripts/action-menu-js.html +++ b/layouts/_partials/scripts/action-menu-js.html @@ -66,7 +66,7 @@ function initializeCommentCount() { const discussion = giscusData.giscus.discussion; const totalComments = (discussion.totalCommentCount || 0) + (discussion.totalReplyCount || 0); // set comment count - commentCountEl.textContent = totalComments.toString(); + commentCountEl.textContent = totalComments.toString() || '0'; } }); }); |
