@szymonpiatek/nextwordpress 0.0.20 → 0.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1061,8 +1061,8 @@ function createTIWishlistMutations(fetcher) {
1061
1061
  async function addProduct(shareKey, input) {
1062
1062
  return tiMutate(`${BASE4}/${shareKey}/add_product`, input);
1063
1063
  }
1064
- async function removeProduct(itemId) {
1065
- return tiFetch(`${BASE4}/remove_product/${itemId}`, ["ti-wishlist"]);
1064
+ async function removeProduct(shareKey, itemId) {
1065
+ return tiMutate(`${BASE4}/${shareKey}/remove_product/${itemId}`, {}, "DELETE");
1066
1066
  }
1067
1067
  return { createWishlist, updateWishlist, deleteWishlist, addProduct, removeProduct };
1068
1068
  }