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 @@
+
+
+ WARNING: The recipient address has ZERO transaction
+ history. This may indicate a fresh or unused address.
+ Double-check the address before sending.
+
+
` +
- `WARNING: The recipient address has ZERO transaction history. ` +
- `This may indicate a fresh or unused address. Double-check the address before sending.
`;
- 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";
}
}