Skip to content

Commit

Permalink
Update 10-favorites.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorSvertoka committed Jan 13, 2024
1 parent 04a3e01 commit 9a945cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/10-favorites.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const modalExercises = document.querySelector('.modal-exercises');

modalExercises.addEventListener('click', onExercisesCardClick);

let array = [];
let array = JSON.parse(localStorage.getItem('exerciseData')) || [];

async function onExercisesCardClick(event) {
if (!event.target.closest('.modal-exercises__btn-favorites')) {
Expand Down

0 comments on commit 9a945cb

Please sign in to comment.