diff --git a/js/card.js b/js/card.js index 1873d37..3af7427 100644 --- a/js/card.js +++ b/js/card.js @@ -58,11 +58,9 @@ export const card = (() => { const renderLike = (comment) => { return ` - `; }; diff --git a/js/like.js b/js/like.js index f985d22..d225e1f 100644 --- a/js/like.js +++ b/js/like.js @@ -20,8 +20,8 @@ export const like = (() => { const like = async (button) => { const id = button.getAttribute('data-uuid'); - const heart = button.firstElementChild.lastElementChild; - const info = button.firstElementChild.firstElementChild; + const info = button.firstElementChild; + const heart = button.lastElementChild; button.disabled = true;