invert check logic (#1710)

This commit is contained in:
Guillermo Vayá 2021-08-31 15:20:08 +02:00 committed by GitHub
parent 7a0367a52f
commit ff3c259101
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,13 +203,13 @@ export default class SettingsPage extends React.PureComponent {
key: 'notifications',
data: {
...this.state.notifications,
flashWindow: this.flashWindowRef.current.props.checked ? 2 : 0,
flashWindow: this.flashWindowRef.current.props.checked ? 0 : 2,
},
});
this.setState({
notifications: {
...this.state.notifications,
flashWindow: this.flashWindowRef.current.props.checked ? 2 : 0,
flashWindow: this.flashWindowRef.current.props.checked ? 0 : 2,
},
});
}