Skip to content

Commit

Permalink
fix(settings): hide quality selector in case of 1 option (#124)
Browse files Browse the repository at this point in the history
If there's only one quality option then there's no reason to show quality menu for user selection
  • Loading branch information
OrenMe committed Nov 6, 2017
1 parent bd06d12 commit f630c1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/settings/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ class SettingsControl extends BaseComponent {
{ !this.state.smartContainerOpen ? '' :
<SmartContainer title='Settings' onClose={() => this.onControlButtonClick()}>
{
qualityOptions.length === 0 ? '' :
qualityOptions.length <= 1 ? '' :
<Localizer>
<SmartContainerItem icon='quality' label={<Text id='settings.quality' />} options={qualityOptions} onSelect={(o) => this.onQualityChange(o)} />
</Localizer>
Expand Down

0 comments on commit f630c1f

Please sign in to comment.