mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
Add new fields to admin panel (#14943)
* Add new fields to admin panel * fix lint * Update hall.js * fix(plab): plab * fix(lint): destructure assignment * fix(subs): coerce offset to number --------- Co-authored-by: SabreCat <sabe@habitica.com>
This commit is contained in:
@@ -290,7 +290,7 @@ export function getPlanContext (user, now) {
|
||||
const planMonths = subscriptionBlocks[plan.planId] ? subscriptionBlocks[plan.planId].months : 1;
|
||||
let monthsTillNextHourglass;
|
||||
if (planMonths > 1) {
|
||||
monthsTillNextHourglass = plan.consecutive.offset + 1;
|
||||
monthsTillNextHourglass = Number(plan.consecutive.offset) + 1;
|
||||
} else {
|
||||
monthsTillNextHourglass = 3 - plan.perkMonthCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user