diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 16:08:59 +0700 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2022-11-01 16:08:59 +0700 |
| commit | 7bcf7a1d2053e8f785a3832b3833e8348c4d371b (patch) | |
| tree | 1bb5ea9d9e17ce064da8f1aacd7c794fe15c1dad | |
| parent | f0a6b965b1a529b1f3fc6be688c3913f198baf7e (diff) | |
update use effect deps in product detail
| -rw-r--r-- | src/pages/shop/product/[slug].js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/shop/product/[slug].js b/src/pages/shop/product/[slug].js index b6af8c87..2010d93e 100644 --- a/src/pages/shop/product/[slug].js +++ b/src/pages/shop/product/[slug].js @@ -68,7 +68,7 @@ export default function ProductDetail({product}) { }); } } - }, [selectedVariant]) + }, [selectedVariant, product]); let onchangeVariant = (e) => { setSelectedVariant(e.target.value); |
