From 500b5a89a4b9ec8feb1a4f896bb29f703c29fda8 Mon Sep 17 00:00:00 2001 From: ntr Date: Mon, 12 Aug 2019 14:35:34 +1000 Subject: [PATCH] . --- client/src/components/login.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/client/src/components/login.jsx b/client/src/components/login.jsx index 0fcbf18f..2c9db016 100644 --- a/client/src/components/login.jsx +++ b/client/src/components/login.jsx @@ -70,6 +70,11 @@ class Login extends Component { const registerConfirm = () => this.state.register.password === this.state.register.confirm; + const loginDisabled = () => { + const { password, name } = this.state.login; + return !(password && name); + } + const registerDisabled = () => { const { password, name, code } = this.state.register; return !(registerConfirm() && password && name && code); @@ -79,7 +84,7 @@ class Login extends Component {

mnml.gg

@@ -106,6 +111,7 @@ class Login extends Component {