Skip to content

Commit

Permalink
Playing it safer
Browse files Browse the repository at this point in the history
  • Loading branch information
boyonthebeach2k authored Jun 21, 2024
1 parent 57b9433 commit 553d908
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 @@ -140,7 +140,7 @@ const getServants = async (region: "JP" | "CN" | "TW" | "KR" | "NA" = "JP"): Pro
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) ?? iori.noblePhantasms;

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

0 comments on commit 553d908

Please sign in to comment.