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