diff --git a/package-lock.json b/package-lock.json index 2b2d2daed2..89d5bcfa87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "habitica", - "version": "4.197.0", + "version": "4.197.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e4dfd4f290..fc4bf1b6ee 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "habitica", "description": "A habit tracker app which treats your goals like a Role Playing Game.", - "version": "4.197.0", + "version": "4.197.1", "main": "./website/server/index.js", "dependencies": { "@babel/core": "^7.14.3", 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); }, }, };