From 288f556ff949b6bddd855fc75c20ab97524185a9 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Tue, 22 Jun 2021 19:18:21 -0500 Subject: [PATCH] fix(event): put start time on potions --- website/common/script/content/hatching-potions.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/common/script/content/hatching-potions.js b/website/common/script/content/hatching-potions.js index 22622ad9d7..3e89d72f80 100644 --- a/website/common/script/content/hatching-potions.js +++ b/website/common/script/content/hatching-potions.js @@ -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); }, }, };