Skip to content

Commit

Permalink
Fixed bug reported bitfinexcom#546
Browse files Browse the repository at this point in the history
_isEmpty only works for collections, here you are evaluating an individual item so something like checking for undefined would be best. This fixes my bug reported:
bitfinexcom#546
  • Loading branch information
jcbit authored Jun 21, 2020
1 parent 7431576 commit 627a04f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transports/ws2.js
Original file line number Diff line number Diff line change
Expand Up @@ -1244,7 +1244,7 @@ class WSv2 extends EventEmitter {
for (let k = 0; k < filterIndices.length; k++) {
filterValue = filter[filterIndices[k]]

if (_isEmpty(filterValue) || filterValue === '*') {
if (filterValue === undefined || filterValue === '*') {
continue
}

Expand Down

0 comments on commit 627a04f

Please sign in to comment.