From 755b7e786d5e6fa97d6f9ddfde4c14ffe4b07483 Mon Sep 17 00:00:00 2001 From: Andymick Date: Sat, 18 Jul 2026 09:58:40 +0100 Subject: [PATCH] Fix: check both elementsFront and elementsBack for price update --- src/components/DesignCanvas.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DesignCanvas.tsx b/src/components/DesignCanvas.tsx index 5441c5a..d4a4ef8 100644 --- a/src/components/DesignCanvas.tsx +++ b/src/components/DesignCanvas.tsx @@ -867,7 +867,7 @@ export default function DesignCanvas({ product }: { product: ProductDTO }) { onClick={handleAddToBag} className="flex-1 bg-clay px-6 py-3 text-sm font-medium text-paper transition-colors hover:bg-clay-dark" > - Add to bag — 0 ? effectivePriceForPersonalised : product.effectivePrice) * quantity} /> + Add to bag — 0 || elementsBack.length > 0) ? effectivePriceForPersonalised : product.effectivePrice) * quantity} /> {justAdded &&

Added to your bag.

}