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) {