diff --git a/static/assets/comments.js b/static/assets/comments.js index 4d83438..ea13ffe 100644 --- a/static/assets/comments.js +++ b/static/assets/comments.js @@ -16,9 +16,9 @@ function comments(self) { var next = xhr.getResponseHeader('next'); if (next == 'done') { self.remove(); - } else { - self.setAttribute('href', next); + return; } + self.setAttribute('href', next); self.textContent = 'more comments'; } xhr.send();