Fix warnings coming from kai class handler.

This commit is contained in:
zkldi
2021-12-07 21:28:25 +00:00
parent dc2d3dc925
commit 30cf7cbc83
2 changed files with 2 additions and 2 deletions
@@ -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 {};
}