Skip to content

Commit 0b9a15c

Browse files
committed
hide ads when they are not available
1 parent 68f3c45 commit 0b9a15c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/carbonAds/components/CarbonAd.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const CarbonAd = () => {
1010
},
1111
})
1212

13-
if (!ad) {
13+
if (!ad || !ad.statlink) {
1414
return null
1515
}
1616

src/features/carbonAds/types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export type Ad = {
2-
statlink: string,
2+
statlink?: string,
33
company: string,
44
companyTagline: string,
55
smallImage: string,

0 commit comments

Comments
 (0)