diff --git a/static/webui/script.js b/static/webui/script.js
index 34b390607..9755f08e8 100644
--- a/static/webui/script.js
+++ b/static/webui/script.js
@@ -651,6 +651,7 @@ function updateInventory() {
                     {
                         const td = document.createElement("td");
                         td.classList = "text-end text-nowrap";
+
                         let maxXP = Math.pow(uniqueLevelCaps[item.ItemType] ?? 30, 2) * 1000;
                         if (
                             category != "Suits" &&
@@ -663,7 +664,6 @@ function updateInventory() {
                         ) {
                             maxXP /= 2;
                         }
-
                         let anyExaltedMissingXP = false;
                         if (item.XP >= maxXP && item.ItemType in itemMap && "exalted" in itemMap[item.ItemType]) {
                             for (const exaltedType of itemMap[item.ItemType].exalted) {
@@ -677,13 +677,6 @@ function updateInventory() {
                                 }
                             }
                         }
-
-                        if (["Suits", "LongGuns", "Pistols", "Melee", "SpaceGuns", "SpaceMelee"].includes(category)) {
-                            const a = document.createElement("a");
-                            a.href = "/webui/detailedView?productCategory=" + category + "&itemId=" + item.ItemId.$oid;
-                            a.innerHTML = ``;
-                            td.appendChild(a);
-                        }
                         if (item.XP < maxXP || anyExaltedMissingXP) {
                             const a = document.createElement("a");
                             a.href = "#";
@@ -721,6 +714,14 @@ function updateInventory() {
                             a.innerHTML = ``;
                             td.appendChild(a);
                         }
+
+                        if (["Suits", "LongGuns", "Pistols", "Melee", "SpaceGuns", "SpaceMelee"].includes(category)) {
+                            const a = document.createElement("a");
+                            a.href = "/webui/detailedView?productCategory=" + category + "&itemId=" + item.ItemId.$oid;
+                            a.innerHTML = ``;
+                            td.appendChild(a);
+                        }
+
                         if (!(item.Features & 8) && modularWeapons.includes(item.ItemType)) {
                             const a = document.createElement("a");
                             a.href = "#";