summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2022-11-01 16:08:59 +0700
committerIT Fixcomart <it@fixcomart.co.id>2022-11-01 16:08:59 +0700
commit7bcf7a1d2053e8f785a3832b3833e8348c4d371b (patch)
tree1bb5ea9d9e17ce064da8f1aacd7c794fe15c1dad
parentf0a6b965b1a529b1f3fc6be688c3913f198baf7e (diff)
update use effect deps in product detail
-rw-r--r--src/pages/shop/product/[slug].js2
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);