fix(event): put start time on potions

This commit is contained in:
Sabe Jones
2021-06-22 19:18:21 -05:00
parent ce1d0a6b0d
commit 288f556ff9

View File

@@ -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);
}, },
}, },
}; };