Don't crash if sponsor image is missing
@@ -46,6 +46,7 @@ const SponsorItem: React.SFC<ItemProps> = ({ sponsor, color }) => (
}}
/>
+ {sponsor.imageFile && sponsor.imageFile.childImageSharp && (
<Img
style={{
position: "absolute",
@@ -60,6 +61,7 @@ const SponsorItem: React.SFC<ItemProps> = ({ sponsor, color }) => (
alt={sponsor.name}
{...sponsor.imageFile!.childImageSharp}
/>
+ )}
</Link>
</Box>
);
