aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve@0xproject.com>2018-11-03 04:12:25 +0800
committerGitHub <noreply@github.com>2018-11-03 04:12:25 +0800
commit6a57a7b5be151114bb06c171560976b09a8c4aa1 (patch)
tree9f3ea9258137a4c8404b4ff2b539c3887d006b6a
parentec83a1d9e735573fe51df7a5854424c0ad4101fb (diff)
parenta770ea56eae47c4ec840d28d1f363a017a89c69c (diff)
downloaddexon-sol-tools-6a57a7b5be151114bb06c171560976b09a8c4aa1.tar.gz
dexon-sol-tools-6a57a7b5be151114bb06c171560976b09a8c4aa1.tar.zst
dexon-sol-tools-6a57a7b5be151114bb06c171560976b09a8c4aa1.zip
Merge pull request #1208 from 0xProject/fix/instant/zero-NaN
[instant] Fix NaN issue with zero input
-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 7859261dd..fcbd0efe3 100644
--- a/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
+++ b/packages/instant/src/containers/selected_erc20_asset_amount_input.ts
@@ -130,7 +130,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