Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrsajadpp committed Jan 9, 2024
1 parent bdc2d00 commit a0f52f7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ buttons.forEach(button => {
activeBtn.forEach(button => {
if (button.classList.contains('active')) {
const icon = button.querySelector('.material-icons-outlined');
icon.classList.remove('material-icons-outlined');
icon.classList.add('material-icons');
if (icon) {
icon.classList.remove('material-icons-outlined');
icon.classList.add('material-icons');
}
}

});
Expand Down

0 comments on commit a0f52f7

Please sign in to comment.