Merge pull request #1603 from refreex/original

Changed function name handlesoundNotificationsChange for handleSoundNotificationsChange
This commit is contained in:
Feross Aboukhadijeh
2019-08-04 09:37:47 -07:00
committed by GitHub

View File

@@ -27,8 +27,8 @@ class PreferencesPage extends React.Component {
this.handleStartupChange =
this.handleStartupChange.bind(this)
this.handlesoundNotificationsChange =
this.handlesoundNotificationsChange.bind(this)
this.handleSoundNotificationsChange =
this.handleSoundNotificationsChange.bind(this)
}
downloadPathSelector () {
@@ -213,12 +213,12 @@ class PreferencesPage extends React.Component {
className='control'
checked={this.props.state.saved.prefs.soundNotifications}
label={'Enable sounds'}
onCheck={this.handlesoundNotificationsChange} />
onCheck={this.handleSoundNotificationsChange} />
</Preference>
)
}
handlesoundNotificationsChange (e, isChecked) {
handleSoundNotificationsChange (e, isChecked) {
dispatch('updatePreferences', 'soundNotifications', isChecked)
}