Fix PayPal billing flow and mobile admin UX
This commit is contained in:
@@ -202,7 +202,13 @@ export function getPackageLimitEntries(
|
||||
key,
|
||||
label: t(labelKey, fallback),
|
||||
value: formatLimitWithRemaining(
|
||||
toNumber((limits as Record<string, number | null>)[key]),
|
||||
(() => {
|
||||
const limitValue = toNumber((limits as Record<string, number | null>)[key]);
|
||||
if (key === 'max_events_per_year' && options.packageType !== 'reseller' && limitValue === null) {
|
||||
return 1;
|
||||
}
|
||||
return limitValue;
|
||||
})(),
|
||||
resolveRemainingForKey(limits, key, usageOverrides),
|
||||
t
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user