mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-01 03:18:06 +03:00
Don't let anything be undefined leading out of fer static.
This commit is contained in:
@@ -68,7 +68,7 @@ export function ParseFervidexStatic(
|
||||
chart: chart as FervidexStaticScore["chart"],
|
||||
clear_type: score.clear_type,
|
||||
ex_score: score.ex_score,
|
||||
miss_count: score.miss_count,
|
||||
miss_count: score.miss_count === undefined ? null : score.miss_count,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ import { GPTSupportedVersions, integer } from "tachi-common";
|
||||
export interface FervidexStaticScore {
|
||||
clear_type: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
||||
ex_score: integer;
|
||||
miss_count?: integer | null; // bp, not cbrk
|
||||
miss_count: integer | null; // bp, not cbrk
|
||||
chart: `${"sp" | "dp"}${"b" | "n" | "h" | "a" | "l"}`;
|
||||
song_id: integer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user