From 0d3bff0ad5e05723e1c9d335a99c28483e10e178 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 10 Nov 2021 09:07:50 +0000 Subject: [PATCH] bugfix(macos+webi): compare dates properly --- macos/releases.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macos/releases.js b/macos/releases.js index 39f7c3f..c0201a6 100644 --- a/macos/releases.js +++ b/macos/releases.js @@ -72,10 +72,10 @@ module.exports = function (request) { if ('10.11.6' === a.version) { return -1; } - if (a.date > a.date) { + if (a.date > b.date) { return 1; } - if (a.date < a.date) { + if (a.date < b.date) { return -1; } }); -- 2.25.1