Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .gitignore

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the change made in this file necessary to fix the bug?

In general, we should limit changes to those that are directly required to address the issue and avoid unrelated modifications.

Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
.DS_Store
# Virtual environments
venv/
.venv/
env/
.env/
ENV/

# Python cache files
__pycache__/
*.pyc
4 changes: 2 additions & 2 deletions front-end/views/profile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ function profileView(username) {
createLogin
);
document
.querySelector("[data-action='login']")
?.addEventListener("click", handleLogin);
.querySelector("[data-form='login']")
?.addEventListener("submit", handleLogin);
Comment on lines +42 to +43

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix the bug. Well done.


const profileData = state.profiles.find((p) => p.username === username);
if (profileData) {
Expand Down