Skip to content

Commit

Permalink
Remove .includes as it was failing on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fuller committed Jun 23, 2017
1 parent 0d8831a commit 8f30171
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/refCount.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function add(element) {
modalReference = modals[bodyClassName];
}

// Add reference to modal for specified key
if (!modalReference.includes(identifier)) {
// Add reference to modal for specified key if it does not exist already
if (modalReference.indexOf(identifier) === -1) {
modalReference.push(identifier);
}

Expand Down

0 comments on commit 8f30171

Please sign in to comment.