summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-08-23 13:53:46 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-08-23 13:53:46 +0700
commit8629883ac83fce8fc2e2200f57299f06fef6cf53 (patch)
tree91551bbbd68cc3b7a3ed08f43c3ae3209960f770 /src
parenta6be7fe1690ce5ad4479e9ff4bc4aa795316eacf (diff)
<iman> update not found brand
Diffstat (limited to 'src')
-rw-r--r--src/pages/shop/brands/[slug].jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pages/shop/brands/[slug].jsx b/src/pages/shop/brands/[slug].jsx
index e786ef78..88e9b302 100644
--- a/src/pages/shop/brands/[slug].jsx
+++ b/src/pages/shop/brands/[slug].jsx
@@ -18,7 +18,7 @@ export default function BrandDetail() {
const brandName = getNameFromSlug(slug)
const id = getIdFromSlug(slug)
const {brand} = useBrand({id})
- if (!brand || !brand.data || _.isEmpty(brand.data)) {
+ if ( !brand.isLoading && _.isEmpty(brand.data)) {
return <PageNotFound />;
}
return (