Skip to content

Commit

Permalink
Merge pull request ccxt#1560 from adi90x/master
Browse files Browse the repository at this point in the history
Should check typeof instead of ! to avoid problem if quantityLeaves = 0
  • Loading branch information
kroitor authored Jan 29, 2018
2 parents 03022a8 + 5dffbd4 commit 0049353
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/hitbtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ module.exports = class hitbtc extends Exchange {
if (typeof amount === 'undefined')
amount = this.safeFloat (order, 'quantity');
let remaining = this.safeFloat (order, 'quantityLeaves');
if (!remaining)
if (typeof remaining === 'undefined')
remaining = this.safeFloat (order, 'leavesQuantity');
let filled = undefined;
let cost = undefined;
Expand Down

0 comments on commit 0049353

Please sign in to comment.