Skip to content

Commit

Permalink
fix(as-input): replace includes with indexOf
Browse files Browse the repository at this point in the history
  • Loading branch information
jaebradley committed Apr 4, 2018
1 parent ceeb09d commit 914fd3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asInput/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const asInput = (WrappedComponent, inputType = undefined, labelFirst = true) =>
}

hasDangerTheme() {
return this.props.themes.includes('danger');
return this.props.themes.indexOf('danger') >= 0;
}

isGroupedInput() {
Expand Down

0 comments on commit 914fd3b

Please sign in to comment.