From cc5682760d1fd51f6e47f384c80524543d6949d6 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Sun, 2 Nov 2025 00:17:25 -0700 Subject: [PATCH] chore(webui): clean up listing for rivens with pending challenges (#2969) Closes #2966 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2969 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com> --- 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); } {