Skip to content

Commit

Permalink
Fix: Updated pin logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangsonww committed Feb 1, 2024
1 parent c70b489 commit 28476f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ function addNewNote(title = "Untitled Note - Click here to give it a name!", tex
const pinBtn = note.querySelector('.pin');
pinBtn.innerHTML = '<i class="fas fa-thumbtack"></i>';
pinBtn.title = isPinned ? "Unpin Note" : "Pin Note";

if (isPinned) {
pinBtn.classList.add('pin-pinned');
pinBtn.classList.remove('pin-unpinned');
Expand Down

0 comments on commit 28476f3

Please sign in to comment.