Select 'Once' option by default

Also fixes a small typo in an unrelated part of the code.

GH-514
This commit is contained in:
Wesley van der Sanden 2017-11-14 22:19:43 +01:00
parent 5cf940b314
commit f970fda2e3
2 changed files with 5 additions and 2 deletions

View file

@ -458,7 +458,10 @@ const SettingsPage = createReactClass({
name='bounceIconType' name='bounceIconType'
value='informational' value='informational'
disabled={!this.state.notifications.bounceIcon} disabled={!this.state.notifications.bounceIcon}
defaultChecked={this.state.notifications.bounceIconType === 'informational'} defaultChecked={
!this.state.notifications.bounceIconType ||
this.state.notifications.bounceIconType === 'informational'
}
onChange={this.handleBounceIconType} onChange={this.handleBounceIconType}
>{'once'}</Radio> >{'once'}</Radio>
{' '} {' '}

View file

@ -14,7 +14,7 @@ const upgradePreferences = require('./config/upgradePreferences');
function loadDefault(spellCheckerLocale) { function loadDefault(spellCheckerLocale) {
const config = JSON.parse(JSON.stringify(defaultPreferences)); const config = JSON.parse(JSON.stringify(defaultPreferences));
return Object.assign({}, config, { return Object.assign({}, config, {
spellCheckerLocale: spellCheckerLocale || defaultPreferences.pellCheckerLocale || 'en-US' spellCheckerLocale: spellCheckerLocale || defaultPreferences.spellCheckerLocale || 'en-US'
}); });
} }