diff options
author | Steve Klebanoff <steve@0xproject.com> | 2018-12-13 09:34:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-13 09:34:42 +0800 |
commit | 0f8acedf0217e209dc6f91da4dbd0bf009784c4a (patch) | |
tree | 97b502e31ef8e8b84d6ac2d894e32a8a5861a165 | |
parent | 3a8f3e01b611f666afd8769b532f8576ca5b5e14 (diff) | |
parent | a0ea0415ddd2fb2b9b23ad249d5c0230314260c4 (diff) | |
download | dexon-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.ts | 1 |
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 ) { |