Commit 882ebbec authored by drumm's avatar drumm
Browse files

Fix null/undefined mixup causing the last comment to be disregarded

parent 1937d76a
......@@ -428,7 +428,7 @@
commentList = new Map();
for (let comment of Array.from(document.querySelectorAll('.comments>.comment')).reverse()) {
const date = Date.parse(comment.querySelector('time[pubdate]').getAttribute('datetime'));
if (date > lastDate && lastDate !== null) {
if (date > lastDate && lastDate !== undefined) {
// Due to https://www.drupal.org/project/drupal/issues/1374090,
// comments may be out of chronological order. Ignore time traveling.
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment