@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.
@@ -1063,8 +1063,8 @@ function createTIWishlistMutations(fetcher) {
1063
1063
  async function addProduct(shareKey, input) {
1064
1064
  return tiMutate(`${BASE4}/${shareKey}/add_product`, input);
1065
1065
  }
1066
- async function removeProduct(itemId) {
1067
- return tiFetch(`${BASE4}/remove_product/${itemId}`, ["ti-wishlist"]);
1066
+ async function removeProduct(shareKey, itemId) {
1067
+ return tiMutate(`${BASE4}/${shareKey}/remove_product/${itemId}`, {}, "DELETE");
1068
1068
  }
1069
1069
  return { createWishlist, updateWishlist, deleteWishlist, addProduct, removeProduct };
1070
1070
  }