From f5a15905e4303b11098bdc7174a58eb8006ca323 Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 7 Sep 2023 23:35:41 +0100 Subject: [PATCH] userpage: fix email change modal show/hide --- ts/user.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/ts/user.ts b/ts/user.ts index 05afdb9..6f109e1 100644 --- a/ts/user.ts +++ b/ts/user.ts @@ -450,6 +450,7 @@ const addEditEmail = (add: boolean): void => { _post("/my/email", {"email": input.value}, (req: XMLHttpRequest) => { if (req.readyState == 4 && (req.status == 303 || req.status == 200)) { document.dispatchEvent(new CustomEvent("details-reload")); + window.modals.email.close(); } }, true, (req: XMLHttpRequest) => { if (req.readyState == 4 && req.status == 401) {