aboutsummaryrefslogtreecommitdiffstats
path: root/packages
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
parente2607980eb2714cfacf75283db272706dcbc0c8c (diff)
downloaddexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar
dexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.gz
dexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.bz2
dexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.lz
dexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.xz
dexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.tar.zst
dexon-0x-contracts-5865d1f62c8af89bee14c50ec2fea9587a25fc25.zip
strict check for children in contentblock
Diffstat (limited to 'packages')
-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>
);
};