userpage: fix referral card when no message set

pull/322/head
Harvey Tindall 1 year ago
parent 8c2a35f755
commit 4fcb58aefa
No known key found for this signature in database
GPG Key ID: BBC65952848FB1A2

@ -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) { if (typeof(messageCard) != "undefined" && messageCard != null) {
messageCard.innerHTML = messageCard.innerHTML.replace(new RegExp("{username}", "g"), details.username);
setBestRowSpan(messageCard, false); setBestRowSpan(messageCard, false);
// contactCard.querySelector(".content").classList.add("h-100"); // contactCard.querySelector(".content").classList.add("h-100");
} else if (!statusCard.classList.contains("unfocused")) { } else if (!statusCard.classList.contains("unfocused")) {

Loading…
Cancel
Save