Fix the checkbox to disable the Welcome page

Recently, we reimplemented the Welcome page in React. Unfortunately, we
broke the checkbox that enables/disables the Welcome page and it would
allow checking but wouldn't allow unchecking.
This commit is contained in:
Lyubomir Marinov 2017-01-17 16:20:43 -06:00
parent 6efad1348a
commit b8a6eb4768
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class WelcomePage extends AbstractWelcomePage {
*/
_onDisableWelcomeChange(event) {
this.setState({
enableWelcomePage: !event.target.value
enableWelcomePage: !event.target.checked
}, () => {
APP.settings.setWelcomePageEnabled(this.state.enableWelcomePage);
});