Remove usage of == and !=
This commit is contained in:
@@ -15,7 +15,7 @@ export default class SettingsForm extends Component {
|
||||
|
||||
handleInput(event) {
|
||||
let target = event.target;
|
||||
let value = target.type == "checkbox" ? target.checked : target.value;
|
||||
let value = target.type === "checkbox" ? target.checked : target.value;
|
||||
this.setState({ [target.name]: value }, () => {
|
||||
this.props.onChange(this.state);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user