aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/dialogs
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-07 07:43:37 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-07 07:43:37 +0800
commit64906a1ba5cefbb153250d4e6c9f39a8aee60c21 (patch)
tree6eb457e4ecf4698257a6816ee070687ff85cbfba /packages/website/ts/components/dialogs
parente75721016e35a07b52d2f164d860c3e18b1d4261 (diff)
parent5989844f1c3d00f57f1ab86a00aa97e17751c576 (diff)
downloaddexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.tar
dexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.tar.gz
dexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.tar.bz2
dexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.tar.lz
dexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.tar.xz
dexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.tar.zst
dexon-sol-tools-64906a1ba5cefbb153250d4e6c9f39a8aee60c21.zip
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/improve-linting
Diffstat (limited to 'packages/website/ts/components/dialogs')
-rw-r--r--packages/website/ts/components/dialogs/eth_weth_conversion_dialog.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/components/dialogs/eth_weth_conversion_dialog.tsx b/packages/website/ts/components/dialogs/eth_weth_conversion_dialog.tsx
index d647bba80..9ac78e80e 100644
--- a/packages/website/ts/components/dialogs/eth_weth_conversion_dialog.tsx
+++ b/packages/website/ts/components/dialogs/eth_weth_conversion_dialog.tsx
@@ -20,7 +20,7 @@ interface EthWethConversionDialogProps {
onCancelled: () => void;
isOpen: boolean;
token: Token;
- etherBalanceInWei: BigNumber;
+ etherBalanceInWei?: BigNumber;
lastForceTokenStateRefetch: number;
}
@@ -60,7 +60,7 @@ export class EthWethConversionDialog extends React.Component<
<FlatButton key="convert" label="Convert" primary={true} onTouchTap={this._onConvertClick.bind(this)} />,
];
const title = this.props.direction === Side.Deposit ? 'Wrap ETH' : 'Unwrap WETH';
- return (
+ return !_.isUndefined(this.props.etherBalanceInWei) ? (
<Dialog
title={title}
titleStyle={{ fontWeight: 100 }}
@@ -70,7 +70,7 @@ export class EthWethConversionDialog extends React.Component<
>
{this._renderConversionDialogBody()}
</Dialog>
- );
+ ) : null;
}
private _renderConversionDialogBody(): React.ReactNode {
const explanation =