Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Sep 25, 2023
1 parent fe2d96e commit 70dd0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gatsby-theme-landing-page/src/sections/hero.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function Hero({ heading, secondaryHeading, content, image }) {
const contentClass = loadedTopImage
? styles.contentWithImage
: styles.content;
const loadedBannerImage = getImage(content[0].image);
const loadedBannerImage = content && getImage(content[0].image);

return (
<Section>
Expand Down

0 comments on commit 70dd0c4

Please sign in to comment.