From d2b4aaf625f10c659614d7326d8dc3e2e31ae0f3 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 17 Sep 2018 01:51:32 +0200 Subject: auth gate/router combo --- app/client/auth/signup.component.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/client/auth/signup.component.js') 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 ( -
{"Please doublecheck the form"}
+
{"Please doublecheck the form (o=_o~~)"}
) } - return null + return
} } -- cgit v1.2.3-70-g09d2