Skip to content

Commit

Permalink
Assert non-null Iori
Browse files Browse the repository at this point in the history
  • Loading branch information
boyonthebeach2k authored Jun 21, 2024
1 parent f4af8a0 commit 4164d8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getters/getChargers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ const getServants = async (region: "JP" | "CN" | "TW" | "KR" | "NA" = "JP"): Pro
if (iori) {
iori.noblePhantasms = iori.noblePhantasms!.filter((np) => np.id === 106001)!;

servants.splice(servants.indexOf(servants.find((serv) => serv.id === iori.id)!), 1, iori);
servants.splice(servants.indexOf(servants.find((serv) => serv.id === iori.id)!), 1, iori!);
}

return servants;
Expand Down

0 comments on commit 4164d8d

Please sign in to comment.