From 1ad26db331387d190faeb3b495223dc3267ec3b4 Mon Sep 17 00:00:00 2001 From: Sainan Date: Fri, 7 Mar 2025 15:19:39 +0100 Subject: [PATCH] fix(webui): show message when max rank all warframes has nothing to do --- static/webui/script.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index fd0811d6..f0190b3c 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -675,14 +675,12 @@ function maxRankAllEquipment(categories) { } if (category === "Suits") { if ("exalted" in itemMap[item.ItemType]) { - if (!batchData["SpecialItems"]) { - batchData["SpecialItems"] = []; - } for (const exaltedType of itemMap[item.ItemType].exalted) { const exaltedItem = data["SpecialItems"].find(x => x.ItemType == exaltedType); if (exaltedItem) { const exaltedCap = itemMap[exaltedType]?.type == "weapons" ? 800_000 : 1_600_000; if (exaltedItem.XP < exaltedCap) { + batchData["SpecialItems"] ??= []; batchData["SpecialItems"].push({ ItemId: { $oid: exaltedItem.ItemId.$oid }, XP: exaltedCap