From 9b80492b4f31178c3b600243efc39086c987c2fd Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Tue, 16 Dec 2025 18:37:54 +0000 Subject: [PATCH] userpage: fix display of email confirmation required message recent adjustments to modals and CSS in general meant a "content" class was removed that was being querySelector'ed. For #455. --- ts/user.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/user.ts b/ts/user.ts index 3c62dac..91a6e48 100644 --- a/ts/user.ts +++ b/ts/user.ts @@ -534,7 +534,7 @@ const addEditEmail = (add: boolean): void => { const content = window.modals.email.modal.querySelector(".content"); content.classList.remove("unfocused"); - const submit = window.modals.email.modal.querySelector(".modal-submit") as HTMLButtonElement; + const submit = window.modals.email.modal.querySelector(".card").children[0] as HTMLButtonElement; submit.onclick = () => { addLoader(submit); _post(