feat: implemented most cart operations

This commit is contained in:
Victor Gerbrands
2023-05-03 18:50:58 +02:00
parent cfe181ac41
commit a46f39bd4c
7 changed files with 216 additions and 43 deletions

View File

@@ -42,7 +42,7 @@ export function AddToCart({
const response = await fetch(`/api/cart`, {
method: 'POST',
body: JSON.stringify({
merchandiseId: selectedVariantId
variantId: selectedVariantId
})
});