diff --git a/components/cart/actions.ts b/components/cart/actions.ts index 034948cc2..624047de3 100644 --- a/components/cart/actions.ts +++ b/components/cart/actions.ts @@ -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'; }