4
0
forked from crowetic/commerce

Updated wishlist hooks, added more, updated API.

This commit is contained in:
Luis Alvarez
2020-10-26 15:23:19 -05:00
parent ada42e0f84
commit bf71d1d41a
18 changed files with 250 additions and 74 deletions

View File

@@ -1,4 +1,4 @@
import parseItem from '../../utils/parse-item'
import { parseCartItem } from '../../utils/parse-item'
import getCartCookie from '../../utils/get-cart-cookie'
import type { CartHandlers } from '..'
@@ -20,7 +20,7 @@ const updateItem: CartHandlers['updateItem'] = async ({
{
method: 'PUT',
body: JSON.stringify({
line_item: parseItem(item),
line_item: parseCartItem(item),
}),
}
)