mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix(shops): use gala-specific logic for gala gear canBuy
This commit is contained in:
@@ -16,7 +16,8 @@ import t from '../../../translation';
|
||||
import { getClassName } from '../../../../libs/getClassName';
|
||||
|
||||
const CURRENT_EVENT = find(
|
||||
EVENTS, event => moment().isBetween(event.start, event.end) && Boolean(event.season),
|
||||
EVENTS, event => moment().isBetween(event.start, event.end)
|
||||
&& ['winter', 'spring', 'summer', 'fall'].includes(event.season),
|
||||
);
|
||||
|
||||
const gearEvents = pickBy(EVENTS, event => event.gear);
|
||||
|
||||
Reference in New Issue
Block a user