Merge pull request #1208 from 0xProject/fix/instant/zero-NaN

[instant] Fix NaN issue with zero input
This commit is contained in:
Steve Klebanoff
2018-11-02 13:12:25 -07:00
committed by GitHub

View File

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