diff --git a/common/src/util/freebuff-plan-summary.ts b/common/src/util/freebuff-plan-summary.ts index 5878c77bf0..e7790379fb 100644 --- a/common/src/util/freebuff-plan-summary.ts +++ b/common/src/util/freebuff-plan-summary.ts @@ -40,6 +40,7 @@ export interface FreebuffPlanSummary { /** Session units, without trailing ".0" noise: 2, 0.5, 1.5. */ export function formatPlanUnits(units: number): string { + if (!Number.isFinite(units)) return '0' const rounded = Math.round(units * 10) / 10 return Number.isInteger(rounded) ? String(rounded) : rounded.toFixed(1) }