mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix(event): put start time on potions
This commit is contained in:
@@ -219,7 +219,7 @@ const premium = {
|
|||||||
}),
|
}),
|
||||||
event: EVENTS.summer2021,
|
event: EVENTS.summer2021,
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore(EVENTS.summer2021.end);
|
return moment().isBetween(EVENTS.summer2021.start, EVENTS.summer2021.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Glow: {
|
Glow: {
|
||||||
@@ -386,7 +386,7 @@ const premium = {
|
|||||||
previousDate: t('juneYYYY', { year: 2020 }),
|
previousDate: t('juneYYYY', { year: 2020 }),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore(EVENTS.summer2021.end);
|
return moment().isBetween(EVENTS.summer2021.start, EVENTS.summer2021.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
Windup: {
|
Windup: {
|
||||||
@@ -473,7 +473,7 @@ const premium = {
|
|||||||
date: t('dateEndJuly'),
|
date: t('dateEndJuly'),
|
||||||
}),
|
}),
|
||||||
canBuy () {
|
canBuy () {
|
||||||
return moment().isBefore(EVENTS.summer2021.end);
|
return moment().isBetween(EVENTS.summer2021.start, EVENTS.summer2021.end);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user