code refactoring

This commit is contained in:
Bangara Raju Kottedi 2024-05-07 02:52:06 +05:30
parent dc3104527b
commit 95f097234d

View File

@ -65,9 +65,9 @@
if(response.postExists){
views.innerText = response.views;
likes.innerText = response.likes;
if(Number(comments.innerText) !== NaN){
comments.innerText = response.comments;
}
// if(Number(comments.innerText) !== NaN){
// comments.innerText = response.comments;
// }
postLikesAndViews.style.display = "inline";
}
}