From f05888b116d8b4d83e8f9816683cefb953f26c6b Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 30 Apr 2024 17:26:22 -0500 Subject: [PATCH] fix(time-travelers): add countdowns --- website/common/script/libs/shops.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/website/common/script/libs/shops.js b/website/common/script/libs/shops.js index a1be27efba..7746e2d520 100644 --- a/website/common/script/libs/shops.js +++ b/website/common/script/libs/shops.js @@ -381,6 +381,7 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la } const sets = content.timeTravelerStore(user, new Date()); + const availabilityMatchers = getScheduleMatchingGroup('timeTravelers'); for (const setKey of Object.keys(sets)) { const set = sets[setKey]; const category = { @@ -389,6 +390,7 @@ shops.getTimeTravelersCategories = function getTimeTravelersCategories (user, la path: `mystery.${set.key}`, pinType: 'mystery_set', purchaseAll: true, + end: Number(set.key) < 300000 ? availabilityMatchers.end : null, }; category.items = map(set.items, item => ({