fix: watch now button not displayed if link is undefined

Signed-off-by: Federico Morreale <frc.morreale@gmail.com>
This commit is contained in:
Federico Morreale
2023-09-28 14:48:12 +02:00
parent 998d5a704e
commit 892423c940
+10 -6
View File
@@ -175,12 +175,16 @@ const Demos = () => {
<BannerSectionGrid>
<ContentBlock
title={<h1>{demoItem.title}</h1>}
actionButtons={[
{
link: demoItem.actionItemLink,
label: 'WATCH NOW',
},
]}
actionButtons={
demoItem.actionItemLink
? [
{
link: demoItem.actionItemLink,
label: 'WATCH NOW',
},
]
: []
}
>
{demoItem.content}
</ContentBlock>