Don't let anything be undefined leading out of fer static.

This commit is contained in:
zkldi
2021-11-19 11:43:03 +00:00
parent 300c3d5813
commit b1276afa77
2 changed files with 2 additions and 2 deletions
@@ -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;
}