chore(webui): clean up listing for rivens with pending challenges
All checks were successful
Build / build (pull_request) Successful in 4m48s

This commit is contained in:
Sainan 2025-11-01 16:11:05 +01:00
parent d794bd94ce
commit 801b425ab8

View File

@ -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;
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 += " <span title='" + loc("code_rank") + "'>★ " + rank + "/" + maxRank + "</span>";
}
tr.appendChild(td);
}
{