Skip to content

Commit

Permalink
[Telemetry] Fix search in Advanced Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
afharo committed Apr 27, 2020
1 parent a6fff8b commit 2db7f73
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ export class TelemetryManagementSection extends Component<Props, State> {
const { query } = nextProps;

const searchTerm = (query.text || '').toLowerCase();
const searchTermMatches = SEARCH_TERMS.some(term => term.indexOf(searchTerm) >= 0);
const searchTermMatches =
this.props.telemetryService.getCanChangeOptInStatus() &&
SEARCH_TERMS.some(term => term.indexOf(searchTerm) >= 0);

if (searchTermMatches !== this.state.queryMatches) {
this.setState(
Expand Down

0 comments on commit 2db7f73

Please sign in to comment.