Skip to content

Commit 9b1762d

Browse files
authored
Fix invalid api response from carbon (#2369)
1 parent 8d38d00 commit 9b1762d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/components/Ads/Ad.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,9 @@ export function Ad({
107107
viaUrl.searchParams.set('utm_medium', 'ads');
108108
viaUrl.searchParams.set('utm_campaign', spaceId);
109109

110-
if (ad) {
111-
console.log('ad', ad);
112-
}
113-
114110
return (
115111
<div ref={containerRef} className={tcls(style)}>
116-
{ad ? (
112+
{ad && ad.description && ad.statlink ? (
117113
<>
118114
{mode === 'classic' || !('callToAction' in ad) ? (
119115
<AdClassicRendering ad={ad} />

0 commit comments

Comments
 (0)