From 8faa0936c9b8dc008c03bb3b11b8b37a31feb058 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Tue, 9 Jun 2020 08:01:03 -0600 Subject: [PATCH] 98 -> 99+ --- src/utils/FormattingUtils.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/utils/FormattingUtils.ts b/src/utils/FormattingUtils.ts index ed1727d190..21b50da4ca 100644 --- a/src/utils/FormattingUtils.ts +++ b/src/utils/FormattingUtils.ts @@ -121,11 +121,12 @@ export function formatCommaSeparatedList(items: string[], itemLimit?: number): s } /** - * Formats a number into a 'minimal' badge count (9, 99, 99+). + * Formats a number into a 'minimal' badge count (9, 98, 99+). * @param count The number to convert * @returns The badge count, stringified. */ export function formatMinimalBadgeCount(count: number): string { - if (count < 100) return count.toString(); + // we specifically go from "98" to "99+" + if (count < 99) return count.toString(); return "99+"; }