]> git.localhorst.tv Git - alttp.git/commitdiff
fix combined status aggregation
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 28 Mar 2024 12:50:36 +0000 (13:50 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Thu, 28 Mar 2024 12:50:36 +0000 (13:50 +0100)
resources/js/helpers/tracker.js

index 47a34f135bbd55e7ec3eb31f2efccc7a824eccfe..944da918fecc127eea6954aed187b850895c205e 100644 (file)
@@ -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';