fix(event): still one more find return

This commit is contained in:
Sabe Jones
2020-12-17 12:43:16 -06:00
parent 2705539a70
commit 6ad20e7abb
2 changed files with 2 additions and 6 deletions

View File

@@ -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));
/*
---------------------------------------------------------------

View File

@@ -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 = {