summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src-migrate/modules/product-detail/components/PriceAction.tsx12
1 files changed, 6 insertions, 6 deletions
diff --git a/src-migrate/modules/product-detail/components/PriceAction.tsx b/src-migrate/modules/product-detail/components/PriceAction.tsx
index ee8009ef..ea65b3d1 100644
--- a/src-migrate/modules/product-detail/components/PriceAction.tsx
+++ b/src-migrate/modules/product-detail/components/PriceAction.tsx
@@ -302,14 +302,14 @@ const PriceAction = ({ product, onCompare }: Props) => {
<div className={`${style['action-wrapper']}`}>
<AddToCart
products={product}
- variantId={activeVariantId}
+ variantId={selectedVariant?.id ?? null}
quantity={Number(quantityInput)}
/>
{!isApproval && (
<AddToCart
source='buy'
products={product}
- variantId={activeVariantId}
+ variantId={selectedVariant?.id ?? null}
quantity={Number(quantityInput)}
/>
)}
@@ -319,7 +319,7 @@ const PriceAction = ({ product, onCompare }: Props) => {
<AddToQuotation
source='buy'
products={product}
- variantId={activeVariantId}
+ variantId={selectedVariant?.id ?? null}
quantity={Number(quantityInput)}
onCompare={onCompare}
/>
@@ -331,14 +331,14 @@ const PriceAction = ({ product, onCompare }: Props) => {
<AddToQuotation
source='buy'
products={product}
- variantId={activeVariantId}
+ variantId={selectedVariant?.id ?? null}
quantity={Number(quantityInput)}
/>
</div>
<div className='col-span-5'>
<AddToCart
products={product}
- variantId={activeVariantId}
+ variantId={selectedVariant?.id ?? null}
quantity={Number(quantityInput)}
/>
</div>
@@ -347,7 +347,7 @@ const PriceAction = ({ product, onCompare }: Props) => {
<AddToCart
source='buy'
products={product}
- variantId={activeVariantId}
+ variantId={selectedVariant?.id ?? null}
quantity={Number(quantityInput)}
/>
)}