From 84f4757409d77f0366e96ed010f6353d54a0eacc Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Tue, 5 May 2026 07:16:09 +0300 Subject: [PATCH] Fix SP team in match timeline not rounded --- app/components/match-page/MatchTimeline.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/components/match-page/MatchTimeline.tsx b/app/components/match-page/MatchTimeline.tsx index c5d7a189a..6c9a52827 100644 --- a/app/components/match-page/MatchTimeline.tsx +++ b/app/components/match-page/MatchTimeline.tsx @@ -18,6 +18,7 @@ import type { StageId, } from "~/modules/in-game-lists/types"; import type { CommonUser } from "~/utils/kysely.server"; +import { roundToNDecimalPlaces } from "~/utils/number"; import { Avatar } from "../Avatar"; import { SendouButton } from "../elements/Button"; import { SendouPopover } from "../elements/Popover"; @@ -540,7 +541,7 @@ function SpTeamDetail({ }) { if (skillDifference.calculated) { const { oldSp, newSp } = skillDifference; - const diff = newSp - oldSp; + const diff = roundToNDecimalPlaces(newSp - oldSp); const isPositive = diff > 0; const arrow = isPositive ? "▲" : "▼";