diff --git a/ts/user.ts b/ts/user.ts index 52e8cb8..3475657 100644 --- a/ts/user.ts +++ b/ts/user.ts @@ -635,9 +635,8 @@ document.addEventListener("details-reload", () => { } } - messageCard.innerHTML = messageCard.innerHTML.replace(new RegExp("{username}", "g"), details.username); - if (typeof(messageCard) != "undefined" && messageCard != null) { + messageCard.innerHTML = messageCard.innerHTML.replace(new RegExp("{username}", "g"), details.username); setBestRowSpan(messageCard, false); // contactCard.querySelector(".content").classList.add("h-100"); } else if (!statusCard.classList.contains("unfocused")) {