fix(webui): show 0 rerolls instead NaN in Rivens
All checks were successful
Build / build (20) (pull_request) Successful in 41s
Build / build (18) (pull_request) Successful in 1m15s
Build / build (22) (pull_request) Successful in 1m20s

This commit is contained in:
AMelonInsideLemon 2025-03-30 15:44:59 +02:00
parent c82cad7b02
commit 5a6c06f956

View File

@ -449,6 +449,7 @@ function updateInventory() {
const td = document.createElement("td"); const td = document.createElement("td");
td.textContent = itemMap[fingerprint.compat]?.name ?? fingerprint.compat; td.textContent = itemMap[fingerprint.compat]?.name ?? fingerprint.compat;
td.textContent += " " + RivenParser.parseRiven(rivenType, fingerprint, 1).name; td.textContent += " " + RivenParser.parseRiven(rivenType, fingerprint, 1).name;
fingerprint.rerolls ??= 0;
td.innerHTML += td.innerHTML +=
" <span title='" + " <span title='" +
loc("code_buffsNumber") + loc("code_buffsNumber") +