1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-22 09:00:10 +00:00

userpage: fix referral card when no message set

This commit is contained in:
Harvey Tindall 2023-11-11 16:02:01 +00:00
parent 8c2a35f755
commit 4fcb58aefa
Signed by: hrfee
GPG Key ID: BBC65952848FB1A2

View File

@ -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")) {