summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);