From 801b425ab829187c04a99e0c06906189726943ef Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sat, 1 Nov 2025 16:11:05 +0100 Subject: [PATCH] chore(webui): clean up listing for rivens with pending challenges --- static/webui/script.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/webui/script.js b/static/webui/script.js index 5d93c808..a0df2e33 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -646,7 +646,7 @@ function fetchItemList() { if ("badReason" in item) { if (item.badReason == "starter") { item.name = loc("code_starter").split("|MOD|").join(item.name); - } else { + } else if (item.badReason != "notraw") { item.name += " " + loc("code_badItem"); } } @@ -1454,7 +1454,11 @@ function updateInventory() { { const td = document.createElement("td"); td.textContent = itemMap[item.ItemType]?.name ?? item.ItemType; - td.innerHTML += " ★ " + rank + "/" + maxRank + ""; + if (itemMap[item.ItemType]?.badReason == "notraw") { + // Assuming this is a riven with a pending challenge, so rank would be N/A, but otherwise it's fine. + } else { + td.innerHTML += " ★ " + rank + "/" + maxRank + ""; + } tr.appendChild(td); } {