summaryrefslogtreecommitdiff
path: root/app/client/auth
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-17 01:01:02 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-17 01:01:02 +0200
commita77d0812d52d52d80bc750832b4e0fe065ce4cac (patch)
treed29617df2ccfdb34baaf75ca11fcd244614bc769 /app/client/auth
parentd5d76a51cf79238c3177aa507213191d279d45ed (diff)
login works\!
Diffstat (limited to 'app/client/auth')
-rw-r--r--app/client/auth/login.component.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/client/auth/login.component.js b/app/client/auth/login.component.js
index 58c3eaf..17c6d67 100644
--- a/app/client/auth/login.component.js
+++ b/app/client/auth/login.component.js
@@ -18,9 +18,7 @@ class Login extends Component {
this.handleChange = this.handleChange.bind(this)
this.handleSubmit = this.handleSubmit.bind(this)
}
- handleChange(e) {
- const name = e.target.name
- const value = e.target.value
+ handleChange(value, name) {
this.setState({
[name]: value,
error: null,