From edcb9577e28dc312f48d5ab3f5ecc8eeffd8db56 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Mon, 22 Jan 2024 14:47:56 +0000 Subject: sign-up page updates status message every time button is pressed --- src/pages/[locale]/sign-up/index.astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/[locale]/sign-up/index.astro b/src/pages/[locale]/sign-up/index.astro index b202440..75103aa 100644 --- a/src/pages/[locale]/sign-up/index.astro +++ b/src/pages/[locale]/sign-up/index.astro @@ -48,7 +48,6 @@ const t = translate(locale); const emailInput = document.getElementById('email') as HTMLInputElement; const submitButton = document.getElementsByTagName('button')[0] as HTMLButtonElement; const statusInfoMsg = document.createElement('p'); - statusInfoMsg.textContent = t(tPage, { key: 'status-working' }); const successPageUrl = `/${locale}/sign-up/success`; @@ -58,6 +57,7 @@ const t = translate(locale); // Disable the form and leave message to let the user know it’s been submitted setIsFormDisabled(true); + statusInfoMsg.textContent = t(tPage, { key: 'status-working' }); form.after(statusInfoMsg); let registrationOptions; -- cgit v1.2.3