Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Fix default engine display problem for fresh profile #3275

Merged
merged 2 commits into from
Aug 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions js/about/preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -364,12 +364,9 @@ class GeneralTab extends ImmutableComponent {
}

class SearchSelectEntry extends ImmutableComponent {
shouldComponentUpdate (nextProps, nextState) {
return this.props.settings.get(settings.DEFAULT_SEARCH_ENGINE) !== nextProps.settings.get(settings.DEFAULT_SEARCH_ENGINE)
}
render () {
return <div>
{this.props.settings.get(settings.DEFAULT_SEARCH_ENGINE) === this.props.name
{getSetting(settings.DEFAULT_SEARCH_ENGINE, this.props.settings) === this.props.name
? <span className='fa fa-check-square' id='searchSelectIcon' /> : null}
</div>
}
Expand Down