mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-23 06:07:07 +00:00
fix(event): put start time on potions
This commit is contained in:
parent
ce1d0a6b0d
commit
288f556ff9
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue