invert check logic (#1710)
This commit is contained in:
parent
7a0367a52f
commit
ff3c259101
|
@ -203,13 +203,13 @@ export default class SettingsPage extends React.PureComponent {
|
||||||
key: 'notifications',
|
key: 'notifications',
|
||||||
data: {
|
data: {
|
||||||
...this.state.notifications,
|
...this.state.notifications,
|
||||||
flashWindow: this.flashWindowRef.current.props.checked ? 2 : 0,
|
flashWindow: this.flashWindowRef.current.props.checked ? 0 : 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
this.setState({
|
this.setState({
|
||||||
notifications: {
|
notifications: {
|
||||||
...this.state.notifications,
|
...this.state.notifications,
|
||||||
flashWindow: this.flashWindowRef.current.props.checked ? 2 : 0,
|
flashWindow: this.flashWindowRef.current.props.checked ? 0 : 2,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue