From 01e682b5765b1a4dbb0d73e366238050e190a091 Mon Sep 17 00:00:00 2001 From: Ryan <7389646+ryanbarlow97@users.noreply.github.com> Date: Thu, 15 Jan 2026 21:15:38 +0000 Subject: [PATCH] Revert "Amended renderNumber to display numbers in the billions range" (#2913) Reverts openfrontio/OpenFrontIO#2911 ## Description: Reverts confusing "billion" ## Please complete the following: - [X] I have added screenshots for all UI updates - [X] I process any text displayed to the user through translateText() and I've added it to the en.json file - [X] I have added relevant tests to the test directory - [X] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: w.o.n --- src/client/Utils.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/client/Utils.ts b/src/client/Utils.ts index ab56464f1..2f4e0dafd 100644 --- a/src/client/Utils.ts +++ b/src/client/Utils.ts @@ -42,13 +42,7 @@ export function renderNumber( num = Number(num); num = Math.max(num, 0); - if (num >= 10_000_000_000) { - const value = Math.floor(num / 100000000) / 10; - return value.toFixed(fixedPoints ?? 1) + "B"; - } else if (num >= 1_000_000_000) { - const value = Math.floor(num / 10000000) / 100; - return value.toFixed(fixedPoints ?? 2) + "B"; - } else if (num >= 10_000_000) { + if (num >= 10_000_000) { const value = Math.floor(num / 100000) / 10; return value.toFixed(fixedPoints ?? 1) + "M"; } else if (num >= 1_000_000) {