feat(analytics): added shopify analytics

This commit is contained in:
oybek 2024-02-09 19:33:54 +04:00
parent 27c01de633
commit 69062c0395

View File

@ -54,6 +54,10 @@ export async function removeItem(prevState: any, lineId: string) {
try { try {
await removeFromCart(cartId, [lineId]); await removeFromCart(cartId, [lineId]);
revalidateTag(TAGS.cart); revalidateTag(TAGS.cart);
return {
success: true,
cartId
};
} catch (e) { } catch (e) {
return 'Error removing item from cart'; return 'Error removing item from cart';
} }