typeof -> isString

This commit is contained in:
Steve Klebanoff
2018-12-13 13:31:30 -08:00
parent 9a1d2c055e
commit 9697d66b66

View File

@@ -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}