Skip to content

Commit 0747af0

Browse files
committed
always display the buttons container to preserve correct spacing
1 parent 646991d commit 0747af0

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/components/Hero/HubHero/index.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,12 @@ const HubHero = ({
6767
<Heading size="2xl">{header}</Heading>
6868
<Text size="lg">{description}</Text>
6969
</Stack>
70-
{buttons && (
71-
<HStack justify={{ md: "center", xl: "start" }} spacing="4">
72-
{buttons.map((button, idx) => {
73-
if (!button) return
74-
return <CallToAction key={idx} {...button} />
75-
})}
76-
</HStack>
77-
)}
70+
<HStack justify={{ md: "center", xl: "start" }} spacing="4">
71+
{(buttons || []).map((button, idx) => {
72+
if (!button) return
73+
return <CallToAction key={idx} {...button} />
74+
})}
75+
</HStack>
7876
</Stack>
7977
</Box>
8078
)

0 commit comments

Comments
 (0)