diff options
author | Brandon Millman <brandon.millman@gmail.com> | 2018-10-30 01:40:11 +0800 |
---|---|---|
committer | Brandon Millman <brandon.millman@gmail.com> | 2018-10-30 01:40:11 +0800 |
commit | 3f35239b27653da898218e53909982203fad6d17 (patch) | |
tree | 2acfc843dce83d5f8643980f9c74af25d12a18df /packages/instant/src/components | |
parent | aab9bedd7fe1ab328e416024b6397f242d39d84f (diff) | |
download | dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.tar dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.tar.gz dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.tar.bz2 dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.tar.lz dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.tar.xz dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.tar.zst dexon-sol-tools-3f35239b27653da898218e53909982203fad6d17.zip |
fix(instant): fix spelling error and BigNumber gte operation
Diffstat (limited to 'packages/instant/src/components')
-rw-r--r-- | packages/instant/src/components/buy_button.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx index 13c1dc88c..129aedaf3 100644 --- a/packages/instant/src/components/buy_button.tsx +++ b/packages/instant/src/components/buy_button.tsx @@ -49,8 +49,8 @@ export class BuyButton extends React.Component<BuyButtonProps> { this.props.onValidationPending(buyQuote); const takerAddress = await getBestAddress(); - const hasSufficentEth = await balanceUtil.hasSufficentEth(takerAddress, buyQuote, web3Wrapper); - if (!hasSufficentEth) { + const hasSufficientEth = await balanceUtil.hasSufficientEth(takerAddress, buyQuote, web3Wrapper); + if (!hasSufficientEth) { this.props.onValidationFail(buyQuote, ZeroExInstantError.InsufficientETH); return; } |