diff --git a/src/structures/Wishlist.js b/src/structures/Wishlist.js index 927b0b4..cb2b7bf 100644 --- a/src/structures/Wishlist.js +++ b/src/structures/Wishlist.js @@ -161,6 +161,8 @@ class Wishlist { } const productData = await getProductData(item.url) + if (!productData) return; // short-circuit when there's no data + for (const key of ['name', 'price', 'image']) { if (productData[key]) item[key] = productData[key] }