mirror of
https://github.com/vercel/commerce.git
synced 2025-05-12 12:47:50 +00:00
feat(analytics): added products to add to cart event
This commit is contained in:
parent
ff5c75bbc5
commit
86cd033354
@ -60,10 +60,6 @@ export async function removeItem(prevState: any, lineId: string) {
|
||||
try {
|
||||
await removeFromCart(cartId, [lineId]);
|
||||
revalidateTag(TAGS.cart);
|
||||
return {
|
||||
success: true,
|
||||
cartId
|
||||
};
|
||||
} catch (e) {
|
||||
return 'Error removing item from cart';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user