aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/components/instant_heading.tsx4
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 {