mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 20:58:51 +00:00
fix(event): still one more find return
This commit is contained in:
parent
2705539a70
commit
6ad20e7abb
2 changed files with 2 additions and 6 deletions
|
|
@ -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));
|
||||
|
||||
/*
|
||||
---------------------------------------------------------------
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue