From 4fcb58aefa578dd50cd026f4af6d07f009dfe169 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Sat, 11 Nov 2023 16:02:01 +0000 Subject: [PATCH] userpage: fix referral card when no message set --- ts/user.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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")) {