aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-tools-pages/ts/components/content-block.tsx
diff options
context:
space:
mode:
authorAugust Skare <post@augustskare.no>2018-11-20 22:10:59 +0800
committerAugust Skare <post@augustskare.no>2018-11-20 22:10:59 +0800
commitea1805058924e12a18bcc4f9de712bfade64c595 (patch)
treecb172f39ead2ff076600dbcf53745e2bb1a34580 /packages/dev-tools-pages/ts/components/content-block.tsx
parent117726c6d80dd20e8b9409cec23b0c062690b0df (diff)
downloaddexon-0x-contracts-ea1805058924e12a18bcc4f9de712bfade64c595.tar.gz
dexon-0x-contracts-ea1805058924e12a18bcc4f9de712bfade64c595.tar.zst
dexon-0x-contracts-ea1805058924e12a18bcc4f9de712bfade64c595.zip
use lodash isUndefined function
Diffstat (limited to 'packages/dev-tools-pages/ts/components/content-block.tsx')
-rw-r--r--packages/dev-tools-pages/ts/components/content-block.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/ts/components/content-block.tsx b/packages/dev-tools-pages/ts/components/content-block.tsx
index a8c208163..3f6b024e6 100644
--- a/packages/dev-tools-pages/ts/components/content-block.tsx
+++ b/packages/dev-tools-pages/ts/components/content-block.tsx
@@ -1,5 +1,6 @@
import * as React from 'react';
import styled from 'styled-components';
+import * as _ from 'lodash';
import { ContextInterface } from 'ts/context';
import { media } from 'ts/variables';
@@ -69,7 +70,7 @@ const ContentBlock: React.StatelessComponent<ContentBlockProps> = props => {
return (
<Base>
<Title color={props.colors}>{props.title}</Title>
- {children === undefined ? null : <Content>{children}</Content>}
+ {_.isUndefined(children) ? null : <Content>{children}</Content>}
</Base>
);
};