We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646991d commit 0747af0Copy full SHA for 0747af0
src/components/Hero/HubHero/index.tsx
@@ -67,14 +67,12 @@ const HubHero = ({
67
<Heading size="2xl">{header}</Heading>
68
<Text size="lg">{description}</Text>
69
</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
- )}
+ <HStack justify={{ md: "center", xl: "start" }} spacing="4">
+ {(buttons || []).map((button, idx) => {
+ if (!button) return
+ return <CallToAction key={idx} {...button} />
+ })}
+ </HStack>
78
79
</Box>
80
)
0 commit comments