aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-19 21:56:40 +0800
committerAugust Skare <post@augustskare.no>2018-11-19 21:56:40 +0800
commit5865d1f62c8af89bee14c50ec2fea9587a25fc25 (patch)
tree430c39b45c5f80621dc7616f0ad185b40a1d29a6 /packages/dev-tools-pages
parente2607980eb2714cfacf75283db272706dcbc0c8c (diff)
downloaddexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar
dexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.gz
dexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.bz2
dexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.lz
dexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.xz
dexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.zst
dexon-sol-tools-5865d1f62c8af89bee14c50ec2fea9587a25fc25.zip
strict check for children in contentblock
Diffstat (limited to 'packages/dev-tools-pages')
-rw-r--r--packages/dev-tools-pages/ts/components/ContentBlock.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/ts/components/ContentBlock.tsx b/packages/dev-tools-pages/ts/components/ContentBlock.tsx
index 66e0331ab..2818858dc 100644
--- a/packages/dev-tools-pages/ts/components/ContentBlock.tsx
+++ b/packages/dev-tools-pages/ts/components/ContentBlock.tsx
@@ -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>
);
};