We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58136c4 commit 0ca1cdbCopy full SHA for 0ca1cdb
src/modules/render/comments.js
@@ -1,4 +1,5 @@
1
import API from '../data';
2
+import counter from '../counter'
3
4
const modal = document.getElementById('modal-comment');
5
@@ -69,6 +70,8 @@ const commentModal = (meal) => {
69
70
if (data === 'No comments available for this meal') {
71
commentUl.innerHTML = `<li class="no-comments">${`${data}. Add a new comment`}</li>`;
72
} else {
73
+ let commentCounter = counter.comments(data);
74
+ allCommentsTitle.innerText = `All Comments(${commentCounter})`;
75
data.forEach((userComment) => {
76
displayComments(commentUl, userComment);
77
});
0 commit comments