From 4164d8d62a80139127326217d57347a972d587a4 Mon Sep 17 00:00:00 2001 From: Boy on the Beach <39589879+boyonthebeach2k@users.noreply.github.com> Date: Fri, 21 Jun 2024 22:39:51 +0530 Subject: [PATCH] Assert non-null Iori --- src/getters/getChargers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getters/getChargers.tsx b/src/getters/getChargers.tsx index aa934ef..9cabaf8 100644 --- a/src/getters/getChargers.tsx +++ b/src/getters/getChargers.tsx @@ -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;