summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/home/components/BannerSection.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/home/components/BannerSection.jsx b/src/lib/home/components/BannerSection.jsx
index 8459d08e..dfef071f 100644
--- a/src/lib/home/components/BannerSection.jsx
+++ b/src/lib/home/components/BannerSection.jsx
@@ -9,7 +9,8 @@ const BannerSection = () => {
const bannerSection = useQuery('bannerSection', fetchBannerSection)
return (
- bannerSection.data && (
+ bannerSection.data &&
+ bannerSection.data?.length > 0 && (
<div className='grid grid-cols-1 sm:grid-cols-2 gap-4'>
{bannerSection.data?.map((banner) => (
<Link key={banner.id} href={banner.url}>