Skip to content

Commit

Permalink
Fix array lookup to .includes rather than .has (facebookarchive#867)
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-toller authored and hellendag committed Dec 30, 2016
1 parent b7fadff commit 5540845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/model/immutable/CharacterMetadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class CharacterMetadata extends CharacterMetadataRecord {
}

hasStyle(style: string): boolean {
return this.getStyle().has(style);
return this.getStyle().includes(style);
}

static applyStyle(
Expand Down

0 comments on commit 5540845

Please sign in to comment.