diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-10-24 05:09:44 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-10-24 05:13:06 +0800 |
commit | 864f89c535cf68a9325f27eae7f49a088c481120 (patch) | |
tree | 20e40e1a5bf46f8b7e408e5223979cfa7a2994ff /packages/instant/src/components/buy_button.tsx | |
parent | c5014af7fe7b06c01edfc677da48628d4972e298 (diff) | |
download | dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.gz dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.bz2 dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.lz dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.xz dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.tar.zst dexon-sol-tools-864f89c535cf68a9325f27eae7f49a088c481120.zip |
chore: incorportate pr feedback
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r-- | packages/instant/src/components/buy_button.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx index 3ef7c1f5c..adc32f071 100644 --- a/packages/instant/src/components/buy_button.tsx +++ b/packages/instant/src/components/buy_button.tsx @@ -24,7 +24,7 @@ export class BuyButton extends React.Component<BuyButtonProps> { onBuyFailure: util.boundNoop, }; public render(): React.ReactNode { - const shouldDisableButton = _.isUndefined(this.props.buyQuote); + const shouldDisableButton = _.isUndefined(this.props.buyQuote) || _.isUndefined(this.props.assetBuyer); return ( <Container padding="20px" width="100%"> <Button width="100%" onClick={this._handleClick} isDisabled={shouldDisableButton}> |