From ac0232aaa0bb7823d7a36e6b6f8d8c8e86addb79 Mon Sep 17 00:00:00 2001 From: Fatma Degirmenci Date: Tue, 10 Feb 2026 23:36:53 +0000 Subject: [PATCH] Fix login issue --- front-end/views/profile.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/front-end/views/profile.mjs b/front-end/views/profile.mjs index dd2b92a..3e0e6db 100644 --- a/front-end/views/profile.mjs +++ b/front-end/views/profile.mjs @@ -39,8 +39,8 @@ function profileView(username) { createLogin ); document - .querySelector("[data-action='login']") - ?.addEventListener("click", handleLogin); + .querySelector(".login__form") + ?.addEventListener("submit", handleLogin); const profileData = state.profiles.find((p) => p.username === username); if (profileData) {