From 86cd033354643ef2bcef7250ba9650cdeceac1fd Mon Sep 17 00:00:00 2001 From: oybek Date: Mon, 1 Apr 2024 18:31:28 +0400 Subject: [PATCH] feat(analytics): added products to add to cart event --- components/cart/actions.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/cart/actions.ts b/components/cart/actions.ts index 0f43f1990..172b94bf1 100644 --- a/components/cart/actions.ts +++ b/components/cart/actions.ts @@ -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'; }