diff options
| author | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-04 14:07:56 +0700 |
|---|---|---|
| committer | Mqdd <ahmadmiqdad27@gmail.com> | 2026-02-04 14:07:56 +0700 |
| commit | ab86fdfd91837630d5ebd81865c60a212a8b27f1 (patch) | |
| tree | 818938a233def4236247c5e3ca0afd7ae9e8560c | |
| parent | dc14a5fd2c97d50b19b043a44d61786d98fda48b (diff) | |
<Miqdad> fix variant select
| -rw-r--r-- | src-migrate/modules/product-detail/components/PriceAction.tsx | 12 |
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)} /> )} |
