aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-14 05:31:30 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-14 05:31:30 +0800
commit9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b (patch)
tree6aab97e0e351ff303148b2fd5f1e4a982a31d934 /packages/instant/src
parent9a1d2c055e176414ee1e7661d5acc764cc9a745d (diff)
downloaddexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.tar
dexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.tar.gz
dexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.tar.bz2
dexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.tar.lz
dexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.tar.xz
dexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.tar.zst
dexon-sol-tools-9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b.zip
typeof -> isString
Diffstat (limited to 'packages/instant/src')
-rw-r--r--packages/instant/src/components/instant_heading.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/instant_heading.tsx b/packages/instant/src/components/instant_heading.tsx
index 99e531574..5b1f9592d 100644
--- a/packages/instant/src/components/instant_heading.tsx
+++ b/packages/instant/src/components/instant_heading.tsx
@@ -119,7 +119,7 @@ export class InstantHeading extends React.Component<InstantHeadingProps, {}> {
<AmountPlaceholder isPulsating={false} color={PLACEHOLDER_COLOR} />,
);
- const fontSize = typeof ethAmount === 'string' && ethAmount.length >= 13 ? '14px' : '16px';
+ const fontSize = _.isString(ethAmount) && ethAmount.length >= 13 ? '14px' : '16px';
return (
<Text
fontSize={fontSize}