diff --git a/src/popup/index.html b/src/popup/index.html index 5c9d444..c77bd37 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -577,6 +577,19 @@
+ `; - if (warningsEl.classList.contains("hidden")) { - warningsEl.innerHTML = warning; - warningsEl.classList.remove("hidden"); - } else { - warningsEl.innerHTML += warning; - } + el.style.visibility = "visible"; + } else { + // Address has history — collapse the reserved space + el.style.display = "none"; } } catch (e) { log.errorf("recipient history check failed:", e.message); + // On error, collapse the reserved space rather than showing a + // false warning or leaving an empty gap + el.style.display = "none"; } }