From: M. Taylor Saotome-Westlake Date: Sun, 18 Sep 2022 01:06:30 +0000 (-0700) Subject: JavaScript conditionals require parens as part of the grammar X-Git-Url: http://unremediatedgender.space/source?a=commitdiff_plain;h=8724eb8d6b05bce4ac65d29f237790dba56b82d2;p=Ultimately_Untrue_Thought.git JavaScript conditionals require parens as part of the grammar Maybe correctly remembering JavaScript syntax will help me feel less gross. --- diff --git a/theme/static/js/comment_counts.js b/theme/static/js/comment_counts.js index ced469a..3bb5866 100644 --- a/theme/static/js/comment_counts.js +++ b/theme/static/js/comment_counts.js @@ -18,7 +18,7 @@ function placeCommentCounts() { for (let [i, container] of containers.entries()) { let a = document.createElement('a'); let count = counts[i]; - if count === 0 { + if (count === 0) { count = "no"; } let pluralizer = count === 1 ? "" : "s";