aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-03 02:48:59 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-11-03 02:48:59 +0800
commita770ea56eae47c4ec840d28d1f363a017a89c69c (patch)
tree3b4f287d051bb8d21909eaa313651e418de8dba3 /packages/instant
parente7e9c2a2ebf32ed96e859c9c50a5c9614e372bc7 (diff)
downloaddexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.tar
dexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.tar.gz
dexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.tar.bz2
dexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.tar.lz
dexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.tar.xz
dexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.tar.zst
dexon-sol-tools-a770ea56eae47c4ec840d28d1f363a017a89c69c.zip
fix(instant): dont get buy quote for zero value
Diffstat (limited to 'packages/instant')
-rw-r--r--packages/instant/src/containers/selected_erc20_asset_amount_input.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
index f0e792e2f..0ba0bd31f 100644
--- a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
+++ b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
@@ -116,7 +116,7 @@ const mapDispatchToProps = (
// reset our buy state
dispatch(actions.setBuyOrderStateNone());
- if (!_.isUndefined(value) && !_.isUndefined(asset) && !_.isUndefined(assetBuyer)) {
+ if (!_.isUndefined(value) && value.greaterThan(0) && !_.isUndefined(asset) && !_.isUndefined(assetBuyer)) {
// even if it's debounced, give them the illusion it's loading
dispatch(actions.setQuoteRequestStatePending());
// tslint:disable-next-line:no-floating-promises