aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-12-13 09:34:42 +0800
committerGitHub <noreply@github.com>2018-12-13 09:34:42 +0800
commit0f8acedf0217e209dc6f91da4dbd0bf009784c4a (patch)
tree97b502e31ef8e8b84d6ac2d894e32a8a5861a165
parent3a8f3e01b611f666afd8769b532f8576ca5b5e14 (diff)
parenta0ea0415ddd2fb2b9b23ad249d5c0230314260c4 (diff)
downloaddexon-sol-tools-0f8acedf0217e209dc6f91da4dbd0bf009784c4a.tar.gz
dexon-sol-tools-0f8acedf0217e209dc6f91da4dbd0bf009784c4a.tar.zst
dexon-sol-tools-0f8acedf0217e209dc6f91da4dbd0bf009784c4a.zip
Merge pull request #1410 from 0xProject/fix/instant/zero-quote
[instant] Don't update heartbeat if amount is 0
-rw-r--r--packages/instant/src/redux/async_data.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/instant/src/redux/async_data.ts b/packages/instant/src/redux/async_data.ts
index c67b222d1..932eb93e9 100644
--- a/packages/instant/src/redux/async_data.ts
+++ b/packages/instant/src/redux/async_data.ts
@@ -97,6 +97,7 @@ export const asyncData = {
if (
!_.isUndefined(selectedAssetUnitAmount) &&
!_.isUndefined(selectedAsset) &&
+ selectedAssetUnitAmount.greaterThan(BIG_NUMBER_ZERO) &&
buyOrderState.processState === OrderProcessState.None &&
selectedAsset.metaData.assetProxyId === AssetProxyId.ERC20
) {