Skip to content

Commit

Permalink
implement strict equals
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak authored Aug 31, 2023
1 parent 2624e8a commit 260d156
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export class ChallengeResultList extends Component {
let matchedId = []
if(!isNaN(query) && query) {
if(this.props.searchFilters.searchType == "projects"){
matchedId = _filter(this.props.unfilteredChallenges, (item) => item.parent.id.toString() == query.toString());
matchedId = _filter(this.props.unfilteredChallenges, (item) => item.parent.id.toString() === query.toString());
} else {
matchedId = _filter(this.props.unfilteredChallenges, (item) => item.id.toString() == query.toString());
matchedId = _filter(this.props.unfilteredChallenges, (item) => item.id.toString() === query.toString());
}
}

Expand Down

0 comments on commit 260d156

Please sign in to comment.