aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 00:07:40 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 00:07:40 +0800
commit7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f (patch)
treef73239298557228976af4b2182f50008a9ee222f /packages/instant/src/components
parent8288e8cce963bbd96c71b3adeb5d34bb96c30693 (diff)
downloaddexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.gz
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.bz2
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.lz
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.xz
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.tar.zst
dexon-sol-tools-7ed44f7b2f0224b4169f0a8f34bae09e8c6b986f.zip
Has Sufficient Funds/Balance -> Has Sufficient ETH
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r--packages/instant/src/components/buy_button.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index bceabbca3..bcd435250 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -49,9 +49,9 @@ export class BuyButton extends React.Component<BuyButtonProps> {
this.props.onValidationPending(buyQuote);
const takerAddress = await getBestAddress();
- const hasSufficientFunds = await balanceUtil.hasSufficientFunds(takerAddress, buyQuote, web3Wrapper);
- if (!hasSufficientFunds) {
- this.props.onValidationFail(buyQuote, ZeroExInstantError.InsufficientBalance);
+ const hasSufficentEth = await balanceUtil.hasSufficentEth(takerAddress, buyQuote, web3Wrapper);
+ if (!hasSufficentEth) {
+ this.props.onValidationFail(buyQuote, ZeroExInstantError.InsufficientETH);
return;
}