Fix EditUser submit bug

This commit is contained in:
Nathan Barber
2021-04-07 12:37:36 -04:00
parent 7e132f22e6
commit 405d78a9d4
5 changed files with 33 additions and 32 deletions

View File

@@ -36,14 +36,7 @@ const AddUser = (props) => {
type="checkbox"
value=""
id="admin-check"
onChange={(e) =>
// this.setState(
// Object.assign({}, this.state, {
// admin: e.target.checked,
// })
// )
setAdmin(e.target.checked)
}
onChange={(e) => setAdmin(e.target.checked)}
/>
<span> </span>
<label className="form-check-label">Admin</label>