diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-08-23 13:53:46 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-08-23 13:53:46 +0700 |
| commit | 8629883ac83fce8fc2e2200f57299f06fef6cf53 (patch) | |
| tree | 91551bbbd68cc3b7a3ed08f43c3ae3209960f770 /src/pages/shop | |
| parent | a6be7fe1690ce5ad4479e9ff4bc4aa795316eacf (diff) | |
<iman> update not found brand
Diffstat (limited to 'src/pages/shop')
| -rw-r--r-- | src/pages/shop/brands/[slug].jsx | 2 |
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 ( |
