From 0ce64a019743027f451c6af9c8532132edbe978d Mon Sep 17 00:00:00 2001 From: Phillip Thelen Date: Thu, 9 Feb 2023 16:20:46 +0100 Subject: [PATCH] fix next hourglass calculation --- website/common/script/cron.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/common/script/cron.js b/website/common/script/cron.js index bbe115a5c5..04f6bfb6ed 100644 --- a/website/common/script/cron.js +++ b/website/common/script/cron.js @@ -292,7 +292,7 @@ export function getPlanContext (user, now) { if (planMonths > 1) { monthsTillNextHourglass = plan.consecutive.offset + 1; } else { - monthsTillNextHourglass = 3 - (plan.consecutive.count % 3); + monthsTillNextHourglass = 3 - plan.perkMonthsCount; } const possibleNextHourglassDate = moment(plan.dateUpdated)