]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/helpers/tracker.js
fix combined status aggregation
[alttp.git] / 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';