mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix(events): Spring Fling lingering
This commit is contained in:
@@ -39,7 +39,7 @@ export const EVENTS = {
|
|||||||
summer2019: { start: '2019-06-18', end: '2019-08-02' },
|
summer2019: { start: '2019-06-18', end: '2019-08-02' },
|
||||||
fall2019: { start: '2019-09-24', end: '2019-11-02' },
|
fall2019: { start: '2019-09-24', end: '2019-11-02' },
|
||||||
winter2020: { start: '2019-12-19', end: '2020-02-02' },
|
winter2020: { start: '2019-12-19', end: '2020-02-02' },
|
||||||
spring2020: { start: '2019-03-17', end: '2020-05-02' },
|
spring2020: { start: '2020-03-17', end: '2020-05-02' },
|
||||||
};
|
};
|
||||||
|
|
||||||
export const SEASONAL_SETS = {
|
export const SEASONAL_SETS = {
|
||||||
|
|||||||
@@ -3621,6 +3621,9 @@ each(quests, (v, key) => {
|
|||||||
defaults(v, {
|
defaults(v, {
|
||||||
key,
|
key,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
|
if (v.event) {
|
||||||
|
return moment().isBetween(v.event.start, v.event.end);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user