mirror of
https://github.com/vercel/commerce.git
synced 2025-05-18 23:46:58 +00:00
feat(analytics): added shopify analytics
This commit is contained in:
parent
27c01de633
commit
69062c0395
@ -54,6 +54,10 @@ 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