Compare commits

..

No commits in common. "5b3218c205b40c2bcd574ad5c24bd6e79892f23d" and "383f41f9ca67a8fd1760096b08e139fe3f87bdce" have entirely different histories.

2 changed files with 1 additions and 8 deletions

View File

@ -4,7 +4,6 @@ import React from "react";
import { DatasetConfig } from "@/components/chart/generic-chart";
import GenericPlayerChart from "@/components/player/chart/generic-player-chart";
import ScoreSaberPlayer from "@ssr/common/types/player/impl/scoresaber-player";
import { isWholeNumber } from "@ssr/common/utils/number-utils";
type Props = {
player: ScoreSaberPlayer;
@ -23,12 +22,6 @@ const datasetConfig: DatasetConfig[] = [
hideOnMobile: false,
displayName: "Average Ranked Accuracy",
position: "left",
valueFormatter: value => {
if (isWholeNumber(value)) {
return value.toString();
}
return value.toFixed(1);
},
},
labelFormatter: (value: number) => `Average Ranked Accuracy ${value.toFixed(3)}%`,
},

View File

@ -55,7 +55,7 @@ export function PlayerRanking({ player, isCountry }: PlayerRankingProps) {
weeklyRankChange >= 0 ? weeklyRankChange != 0 && "text-green-500" : "text-red-500"
)}
>
{formatNumberWithCommas(weeklyRankChange)}
{weeklyRankChange}
</td>
</>
);