Skip to content

Commit 228106d

Browse files
committed
chhheck for errror
1 parent b163a5f commit 228106d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/ads/components/BannerAd.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import './BannerAd.css'
22
import { useGetAd } from '../api/getAd'
33

44
export const BannerAd = () => {
5-
const { data: ad } = useGetAd()
5+
const { data: ad, isError } = useGetAd()
66

7-
if (!ad || !ad.link) {
7+
if (isError || !ad) {
88
return null
99
}
1010

0 commit comments

Comments
 (0)