Skip to content

Commit

Permalink
fixed transpilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tankakatan committed Mar 24, 2018
1 parent ea37d03 commit 84a9833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# You shouldn't edit these files, as they're generated automatically from ccxt.js by build scripts.
# Please read https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#multilanguage-support for details.
#
.vscode
build/*
node_modules/
npm-debug.log
Expand Down
2 changes: 1 addition & 1 deletion js/base/Exchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ module.exports = class Exchange {
let orderbook = response;
for (let i = 0; i < path.length; i++) {
let key = (path[i] === '__market__') ? market['id'] : path[i];
orderbook = (typeof orderbook[key] !== 'undefined') ? orderbook[key] : orderbook;
orderbook = key in orderbook ? orderbook[key] : orderbook;
}
return orderbook;
}
Expand Down

0 comments on commit 84a9833

Please sign in to comment.