diff --git a/website/common/script/libs/shops-seasonal.config.js b/website/common/script/libs/shops-seasonal.config.js index b5ec753a67..3e1d54aa95 100644 --- a/website/common/script/libs/shops-seasonal.config.js +++ b/website/common/script/libs/shops-seasonal.config.js @@ -6,9 +6,8 @@ import { SEASONAL_SETS, } from '../content/constants'; -const CURRENT_EVENT = find(EVENTS, event => { - moment().isBetween(event.start, event.end); -}); +const CURRENT_EVENT = find(EVENTS, event => moment().isBetween(event.start, event.end)); + const SHOP_OPEN = CURRENT_EVENT && ['winter', 'spring', 'summer', 'fall'].includes(CURRENT_EVENT.season); export default {