undefined -> null to follow convention

This commit is contained in:
Steve Klebanoff
2018-10-18 15:31:18 -07:00
parent aa0e07b058
commit ff1f0a9678

View File

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