Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit f75f41d

Browse files
author
Steph Dietz
committed
fix remove from cart
1 parent 436595b commit f75f41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/functions/assembly/crud.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ export function removeFromCart(cartId: string, productId: string): string {
357357

358358
// Manually filter out the cartItemId
359359
for (let i = 0; i < cartItems.length; i++) {
360-
if (cartItems[i] !== cartItemId) {
360+
if (cartItems[i] !== productId) {
361361
newCartItems.push(cartItems[i]);
362362
}
363363
}

0 commit comments

Comments
 (0)