Skip to content

Commit 8f94ddb

Browse files
committed
🐛 check for no href
1 parent 68fe222 commit 8f94ddb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

web/core/Promotion/Promotion.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const Promotion = forwardRef<HTMLAnchorElement, PromotionProps>(function
4141
layoutDirection === 'col' ? 'line-clamp-2' : 'line-clamp-3'
4242
}`
4343

44-
return (
44+
return href ? (
4545
<BaseLink
4646
ref={ref}
4747
type={variant === 'externalLink' ? 'externalUrl' : 'internalUrl'}
@@ -100,5 +100,5 @@ export const Promotion = forwardRef<HTMLAnchorElement, PromotionProps>(function
100100
</div>
101101
</div>
102102
</BaseLink>
103-
)
103+
) : null
104104
})

0 commit comments

Comments
 (0)