Skip to content

fix: resolve duplicate add-btn and auth-error IDs#1031

Open
PradeepTech-hub wants to merge 2 commits into
Charushi06:mainfrom
PradeepTech-hub:main
Open

fix: resolve duplicate add-btn and auth-error IDs#1031
PradeepTech-hub wants to merge 2 commits into
Charushi06:mainfrom
PradeepTech-hub:main

Conversation

@PradeepTech-hub
Copy link
Copy Markdown

Related Issue

Closes #1028

Summary

Fixed duplicate DOM ID issues in index.html and updated button handling logic in js/app.js.

Changes Made

  • Removed duplicate id="add-btn" attributes
  • Removed duplicate auth-error element
  • Replaced getElementById('add-btn') with .add-btn selectors
  • Updated event listener bindings for multiple buttons
  • Added helper functions for shared button state updates

Testing

  • Verified all add buttons trigger correctly
  • Verified button state updates work for all instances
  • Confirmed no remaining duplicate add-btn IDs
  • Checked auth error rendering behavior

Screenshots

No UI changes.

Checklist

  • Code follows project style
  • Tested locally
  • No unrelated changes included
  • Documentation updated (if applicable)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Duplicate add-btn IDs causing incorrect button targeting

1 participant