diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2023-07-14 01:24:27 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2023-07-14 01:24:27 +0000 |
| commit | 782aa7d088c85f4cb837926a3f671495d0d1a0c1 (patch) | |
| tree | df524b359d3e935e7e26ea08ceec933f5480c4be /src/lib/product/components | |
| parent | d61b3ca0213395099e4cea9ace8172d4e622fb52 (diff) | |
| parent | 3f890e6d482cefba37014e021cb4c2b8d5de2a9d (diff) | |
Merged in Feature/voucher (pull request #12)
Feature/voucher
Diffstat (limited to 'src/lib/product/components')
| -rw-r--r-- | src/lib/product/components/Product/ProductDesktop.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/product/components/Product/ProductDesktop.jsx b/src/lib/product/components/Product/ProductDesktop.jsx index 6a87d022..cafab721 100644 --- a/src/lib/product/components/Product/ProductDesktop.jsx +++ b/src/lib/product/components/Product/ProductDesktop.jsx @@ -66,9 +66,9 @@ const ProductDesktop = ({ product, wishlist, toggleWishlist }) => { } const handleBuy = (variant) => { - const quantity = variantQuantityRefs.current[variant.id].value + const quantity = variantQuantityRefs.current[variant].value if (!validQuantity(quantity)) return - router.push(`/shop/checkout?productId=${variant.id}&quantity=${quantity}`) + router.push(`/shop/checkout?productId=${variant}&quantity=${quantity}`) } const variantSectionRef = useRef(null) |
