From bd228d5d69a1a0cba5b2e983cd4342d173c02934 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 17 Dec 2020 08:25:04 -0600 Subject: [PATCH] fix(event): correct return value for find --- website/common/script/libs/shops-seasonal.config.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 {