Skip to content

Commit

Permalink
Undef socket and type
Browse files Browse the repository at this point in the history
  • Loading branch information
licoffe committed Jan 4, 2018
1 parent 06f21ec commit 8335d6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions filter.js
Expand Up @@ -564,12 +564,14 @@ class Filter {
) &&
(
this.itemType === "any" ||
this.itemType === "" ||
itemTypes[this.itemType].types.indexOf( item.typeLine ) !== -1
this.itemType === "" ||
( this.itemType &&
itemTypes[this.itemType].types.indexOf( item.typeLine ) !== -1 )
) &&
(
this.socketsTotal === "" ||
this.socketsTotal <= item.sockets.length
( item.sockets &&
this.socketsTotal <= item.sockets.length )
) &&
(
this.corrupted === "any" ||
Expand Down

0 comments on commit 8335d6f

Please sign in to comment.