From 484c2087c1994455e673874c01d69bbfd11efb35 Mon Sep 17 00:00:00 2001 From: donarbl Date: Fri, 27 Feb 2026 20:02:27 +0000 Subject: [PATCH] fixed listen for form submit instead of button click --- front-end/views/profile.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front-end/views/profile.mjs b/front-end/views/profile.mjs index dd2b92a..53d4474 100644 --- a/front-end/views/profile.mjs +++ b/front-end/views/profile.mjs @@ -40,7 +40,7 @@ function profileView(username) { ); document .querySelector("[data-action='login']") - ?.addEventListener("click", handleLogin); + ?.addEventListener("submit", handleLogin); const profileData = state.profiles.find((p) => p.username === username); if (profileData) {