aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-11 01:16:15 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-12-11 01:16:15 +0800
commita0ea0415ddd2fb2b9b23ad249d5c0230314260c4 (patch)
tree34aa937ce182d3cc98444288dce7951ab790041c
parenta39e0f13be4d47ee79dd971d49835f6929fa71e7 (diff)
downloaddexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.tar
dexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.tar.gz
dexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.tar.bz2
dexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.tar.lz
dexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.tar.xz
dexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.tar.zst
dexon-sol-tools-a0ea0415ddd2fb2b9b23ad249d5c0230314260c4.zip
fix(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
) {