Fix amount check
This commit is contained in:
parent
9128d3ebe2
commit
2c398bbe03
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue