summaryrefslogtreecommitdiff
path: root/src-migrate/modules/product-detail/components
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-16 05:47:09 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-16 05:47:09 +0000
commit6d302bb338e26810a7f90326b84086217f1f4ae0 (patch)
tree75892386f2a0faf8a75817c627deb626f938d6a9 /src-migrate/modules/product-detail/components
parent5c40f27bb865141a0c4086f03efa5b157b660f6d (diff)
parentf19bed80a5711d2904745b1dff283d7936337b06 (diff)
Merged in bug-product (pull request #245)
<iman> update error code
Diffstat (limited to 'src-migrate/modules/product-detail/components')
-rw-r--r--src-migrate/modules/product-detail/components/Information.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src-migrate/modules/product-detail/components/Information.tsx b/src-migrate/modules/product-detail/components/Information.tsx
index 52eb6b88..75ae3c41 100644
--- a/src-migrate/modules/product-detail/components/Information.tsx
+++ b/src-migrate/modules/product-detail/components/Information.tsx
@@ -19,7 +19,7 @@ type Props = {
const Information = ({ product }: Props) => {
const querySLA = useQuery<IProductVariantSLA>({
- queryKey: ['variant-sla', product.variants[0].id],
+ queryKey: ['variant-sla', product.variants[0]?.id],
queryFn: () => getVariantSLA(product.variants[0].id),
enabled: product.variant_total === 1
})