From 45fbdd1f35d69bba537501339476f811a818baae Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Tue, 22 Apr 2025 00:48:51 +0200 Subject: [PATCH] don't provide "max rank" option for mods where maxRank=0 --- static/webui/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/webui/script.js b/static/webui/script.js index a2b8619c..49ed109d 100644 --- a/static/webui/script.js +++ b/static/webui/script.js @@ -788,7 +788,7 @@ function updateInventory() { { const td = document.createElement("td"); td.classList = "text-end text-nowrap"; - { + if (maxRank != 0) { const a = document.createElement("a"); a.href = "#"; a.onclick = function (event) {