From: Daniel Karbach Date: Thu, 28 Mar 2024 12:50:36 +0000 (+0100) Subject: fix combined status aggregation X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=a856fe4599ff2e81dbee19290abe3c11b2003981;p=alttp.git fix combined status aggregation --- diff --git a/resources/js/helpers/tracker.js b/resources/js/helpers/tracker.js index 47a34f1..944da91 100644 --- a/resources/js/helpers/tracker.js +++ b/resources/js/helpers/tracker.js @@ -1647,7 +1647,7 @@ export const getCombinedStatus = statuses => { if (statuses.filter(s => ['available', 'cleared'].includes(s)).length === statuses.length) { return 'available'; } - if (statuses.filter(s => s === 'unavailable').length === statuses.length) { + if (statuses.filter(s => ['unavailable', 'cleared'].includes(s)).length === statuses.length) { return 'unavailable'; } return 'partial';