diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 06:31:18 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-19 06:33:14 +0800 |
commit | ff1f0a967802529e5ee50a7ff52d67bae1252b51 (patch) | |
tree | 4f4470d1d6761e248e3469173bd865e7ff5ae079 /packages/instant/src | |
parent | aa0e07b0581a645c3d2ea035d3acf28a74de0384 (diff) | |
download | dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.tar dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.tar.gz dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.tar.bz2 dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.tar.lz dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.tar.xz dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.tar.zst dexon-sol-tools-ff1f0a967802529e5ee50a7ff52d67bae1252b51.zip |
undefined -> null to follow convention
Diffstat (limited to 'packages/instant/src')
-rw-r--r-- | packages/instant/src/components/instant_heading.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/instant_heading.tsx b/packages/instant/src/components/instant_heading.tsx index e2ef2d668..48cda7f88 100644 --- a/packages/instant/src/components/instant_heading.tsx +++ b/packages/instant/src/components/instant_heading.tsx @@ -51,14 +51,14 @@ export class InstantHeading extends React.Component<InstantHeadingProps, {}> { ); } - private _placeholderAmountToAlwaysShow(): React.ReactNode | undefined { + private _placeholderAmountToAlwaysShow(): React.ReactNode | null { if (this.props.quoteRequestState === AsyncProcessState.PENDING) { return <AmountPlaceholder isPulsating={true} color={placeholderColor} />; } if (_.isUndefined(this.props.selectedAssetAmount)) { return <AmountPlaceholder isPulsating={false} color={placeholderColor} />; } - return undefined; + return null; } private _ethAmount(): React.ReactNode { |