Skip to content

Commit

Permalink
Assert non-null Iori 2
Browse files Browse the repository at this point in the history
  • Loading branch information
boyonthebeach2k authored Jun 21, 2024
1 parent 1a03e58 commit d801ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/getters/getChargers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,10 @@ const getServants = async (region: "JP" | "CN" | "TW" | "KR" | "NA" = "JP"): Pro

servants.splice(servants.indexOf(servants.find((serv) => serv.id === mash.id)!), 1, mashOG, mashOrtenaus);

const iori = { ...servants.find((serv) => serv.id === 106000) };
const iori = { ...servants.find((serv) => serv.id === 106000)! };

if (iori !== undefined) {
iori.noblePhantasms = iori.noblePhantasms.filter((np) => np.id === 106001)!;
iori.noblePhantasms = iori.noblePhantasms!.filter((np) => np.id === 106001)!;

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

0 comments on commit d801ca3

Please sign in to comment.