From f952ca62af88b680501d1494b7bbe3e3eeee2d13 Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Wed, 26 Aug 2026 17:38:20 +0300 Subject: [PATCH] Handle 1 map only played in tournament without NaN --- .../routes/u.$identifier.seasons.stats.tsx | 25 +++++++++++-------- app/utils/number.ts | 17 +++++++++++++ app/utils/numbers.test.ts | 16 ++++++++++++ 3 files changed, 48 insertions(+), 10 deletions(-) diff --git a/app/features/user-page/routes/u.$identifier.seasons.stats.tsx b/app/features/user-page/routes/u.$identifier.seasons.stats.tsx index eb4e327c3..c3b0f4f2a 100644 --- a/app/features/user-page/routes/u.$identifier.seasons.stats.tsx +++ b/app/features/user-page/routes/u.$identifier.seasons.stats.tsx @@ -18,7 +18,7 @@ import { modesShort } from "~/modules/in-game-lists/modes"; import { stageIds } from "~/modules/in-game-lists/stage-ids"; import type { ModeShort, StageId } from "~/modules/in-game-lists/types"; import invariant from "~/utils/invariant"; -import { cutToNDecimalPlaces } from "~/utils/number"; +import { cutToNDecimalPlaces, winPercentage } from "~/utils/number"; import type { SendouRouteHandle } from "~/utils/remix.server"; import { loader, @@ -277,12 +277,10 @@ function Players({ return (