summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2024-08-23 06:54:25 +0000
committerIT Fixcomart <it@fixcomart.co.id>2024-08-23 06:54:25 +0000
commit56be886ad93b2bb8bc82fbd14410b3a85662c1d6 (patch)
tree91551bbbd68cc3b7a3ed08f43c3ae3209960f770
parenta6be7fe1690ce5ad4479e9ff4bc4aa795316eacf (diff)
parent8629883ac83fce8fc2e2200f57299f06fef6cf53 (diff)
Merged in update-notFound-brand (pull request #263)
<iman> update not found brand
-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 (