mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-06 13:58:05 +03:00
fix: delta stuff
This commit is contained in:
@@ -264,8 +264,8 @@ function StatDelta({
|
||||
game,
|
||||
playtype,
|
||||
}: {
|
||||
v1: number;
|
||||
v2?: number;
|
||||
v1: number | null;
|
||||
v2?: number | null;
|
||||
mode: "folder" | "chart";
|
||||
metric: string;
|
||||
game: Game;
|
||||
@@ -277,6 +277,11 @@ function StatDelta({
|
||||
v2 = 0;
|
||||
}
|
||||
|
||||
if (v1 === null) {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
v1 = 0;
|
||||
}
|
||||
|
||||
const formattedV2 = FormatValue(game, playtype, mode, property, v2);
|
||||
const d = FormatValue(game, playtype, mode, property, v2 - v1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user