Files
ecommerce-platform/app
davide 8bfd7afdcb fix(product): fix cart deduplication for products without variants
addToCart() compared item.variantId === selectedVariant where
selectedVariant is null but saved items store variantId: undefined.
null !== undefined caused findIndex to never match, always inserting
a duplicate instead of incrementing quantity. Normalised with || undefined.
2026-05-19 16:04:25 +02:00
..
2026-05-18 15:25:38 +02:00
2026-05-18 15:25:38 +02:00
2026-05-18 15:25:38 +02:00
2026-05-18 15:25:38 +02:00
2026-05-18 15:25:38 +02:00
2026-05-18 15:25:38 +02:00