From 2c398bbe03440d68835f7150f5b459a1d28c9f7a Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Dominguez Date: Wed, 5 Sep 2018 14:51:06 +0900 Subject: [PATCH] Fix amount check --- src/js/services/shapeshift.service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/shapeshift.service.js b/src/js/services/shapeshift.service.js index f2d0876e7..c290f1fc3 100644 --- a/src/js/services/shapeshift.service.js +++ b/src/js/services/shapeshift.service.js @@ -44,7 +44,7 @@ angular function shiftIt(coinIn, coinOut, withdrawalAddress, returnAddress, amount, cb) { // Test if the amount is correct depending on the min and max - if (typeof amount !== 'number' || amount < service.marketData.minimum || amount > service.marketData.maxLimit) { + if (!amount || typeof amount !== 'number' || amount < service.marketData.minimum || amount > service.marketData.maxLimit) { var err = new Error('Invalid amount'); cb(err); } else {