diff options
author | August Skare <post@augustskare.no> | 2018-11-19 21:56:40 +0800 |
---|---|---|
committer | August Skare <post@augustskare.no> | 2018-11-19 21:56:40 +0800 |
commit | 5865d1f62c8af89bee14c50ec2fea9587a25fc25 (patch) | |
tree | 430c39b45c5f80621dc7616f0ad185b40a1d29a6 /packages/dev-tools-pages/ts/components | |
parent | e2607980eb2714cfacf75283db272706dcbc0c8c (diff) | |
download | dexon-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/ts/components')
-rw-r--r-- | packages/dev-tools-pages/ts/components/ContentBlock.tsx | 2 |
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> ); }; |