mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
Fix warnings coming from kai class handler.
This commit is contained in:
@@ -45,7 +45,7 @@ export async function CreateKaiIIDXClassHandler(
|
||||
return {};
|
||||
}
|
||||
|
||||
if (iidxDan === null) {
|
||||
if (iidxDan === null || iidxDan === undefined) {
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ export async function CreateKaiSDVXClassHandler(
|
||||
|
||||
const sdvxDan: number | null = json.skill_level - 1;
|
||||
|
||||
if (sdvxDan === null || sdvxDan === undefined) {
|
||||
if (json.skill_level === null || json.skill_level === undefined) {
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user