aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_button.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-24 08:15:23 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-24 08:15:23 +0800
commit3cd9f40e63d82c983ce10963c62432c87808f993 (patch)
tree471b1aa39da8ee36f27e6d21978a8cd1c52cf048 /packages/instant/src/components/buy_button.tsx
parenta766d78706cb45336263388360584390fe0e62f2 (diff)
parent4a72dc6c6f0825232d61e470f5b7975aec2e5c0e (diff)
downloaddexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar
dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.gz
dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.bz2
dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.lz
dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.xz
dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.tar.zst
dexon-sol-tools-3cd9f40e63d82c983ce10963c62432c87808f993.zip
Merge branch 'development' into feature/instant/failure-state
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r--packages/instant/src/components/buy_button.tsx2
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 2def34fd7..f999d59a8 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -23,7 +23,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 (
<Button width="100%" onClick={this._handleClick} isDisabled={shouldDisableButton}>
<Text fontColor={ColorOption.white} fontWeight={600} fontSize="20px">