diff --git a/src/assets/js/wishlist.js b/src/assets/js/wishlist.js index fe4e40b2..b286204d 100644 --- a/src/assets/js/wishlist.js +++ b/src/assets/js/wishlist.js @@ -115,11 +115,11 @@ $(function() { .then(handleFetchError) .then(handleFetchResponse) .then(function(response) { - var wishlists = response.data; + var wishlists = response.data; var buttonSave = $('.button.save'); wishlists.forEach(wishlist => { - if (wishlist.hash == $_GET.wishlist) { + if (wishlist.hash == $_GET.hash) { button_set_saved_state(buttonSave); return; }