strict check for children in contentblock

This commit is contained in:
August Skare
2018-11-19 14:56:40 +01:00
parent e2607980eb
commit 5865d1f62c

View File

@@ -69,7 +69,7 @@ const ContentBlock: React.StatelessComponent<ContentBlockProps> = props => {
return (
<Base>
<Title color={props.colors}>{props.title}</Title>
{children ? <Content>{children}</Content> : null}
{children === undefined ? null : <Content>{children}</Content>}
</Base>
);
};