summaryrefslogtreecommitdiff
path: root/app/client/auth/signup.component.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-17 01:51:32 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-17 01:51:32 +0200
commitd2b4aaf625f10c659614d7326d8dc3e2e31ae0f3 (patch)
tree4755ec719eceb0de2c4fb77b49ef974dd5bca805 /app/client/auth/signup.component.js
parenta77d0812d52d52d80bc750832b4e0fe065ce4cac (diff)
auth gate/router combo
Diffstat (limited to 'app/client/auth/signup.component.js')
-rw-r--r--app/client/auth/signup.component.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/app/client/auth/signup.component.js b/app/client/auth/signup.component.js
index e54084b..6f9cdaf 100644
--- a/app/client/auth/signup.component.js
+++ b/app/client/auth/signup.component.js
@@ -30,7 +30,8 @@ class Signup extends Component {
}
handleSubmit(e) {
e.preventDefault()
- if (!this.validate) {
+ if (this.props.auth.loading) return
+ if (!this.validate()) {
return this.props.actions.setError('bad password')
}
let { ...user } = this.state
@@ -81,10 +82,10 @@ class Signup extends Component {
renderAuthError(){
if (this.props.auth.error) {
return (
- <div className='form-input-hint'>{"Please doublecheck the form"}</div>
+ <div className='form-input-hint'>{"Please doublecheck the form (o=_o~~)"}</div>
)
}
- return null
+ return <div className='form-input-hint'></div>
}
}