diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-14 05:31:30 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-12-14 05:31:30 +0800 |
commit | 9697d66b66a9c8ae9f350aae8cf0d6b951a3c96b (patch) | |
tree | 6aab97e0e351ff303148b2fd5f1e4a982a31d934 | |
parent | 9a1d2c055e176414ee1e7661d5acc764cc9a745d (diff) | |
download | dexon-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
-rw-r--r-- | packages/instant/src/components/instant_heading.tsx | 2 |
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} |