Merge pull request #1410 from 0xProject/fix/instant/zero-quote

[instant] Don't update heartbeat if amount is 0
This commit is contained in:
Steve Klebanoff 2018-12-12 17:34:42 -08:00 committed by GitHub
commit 0f8acedf02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
) {