Remove usage of == and !=
This commit is contained in:
@@ -19,7 +19,7 @@ export default class NetworkForm 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 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user