From 6ad20e7abbfc4dcf45a451745ba7d0c031f0d9b3 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Thu, 17 Dec 2020 12:43:16 -0600 Subject: [PATCH] fix(event): still one more find return --- website/common/script/content/bundles.js | 4 +--- website/common/script/content/quests.js | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/website/common/script/content/bundles.js b/website/common/script/content/bundles.js index 2ae28ed86d..cc68f86418 100644 --- a/website/common/script/content/bundles.js +++ b/website/common/script/content/bundles.js @@ -3,9 +3,7 @@ import find from 'lodash/find'; import t from './translation'; import { EVENTS } from './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)); /* --------------------------------------------------------------- diff --git a/website/common/script/content/quests.js b/website/common/script/content/quests.js index 67bd49ee2a..f2864a7a12 100644 --- a/website/common/script/content/quests.js +++ b/website/common/script/content/quests.js @@ -9,9 +9,7 @@ import { USER_CAN_OWN_QUEST_CATEGORIES, } from './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 userCanOwnQuestCategories = USER_CAN_OWN_QUEST_CATEGORIES; const quests = {