Various repairs to code
This commit is contained in:
parent
c488682fe7
commit
15261499de
|
@ -35,13 +35,13 @@ export function Signup ( props ) {
|
||||||
}, [useremail] )
|
}, [useremail] )
|
||||||
|
|
||||||
useEffect( () => {
|
useEffect( () => {
|
||||||
if( setUserpassword.length >= 8 ) {
|
if( password.length >= 8 ) {
|
||||||
setValidpassword(true)
|
setValidpassword(true)
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
setValidpassword(false)
|
setValidpassword(false)
|
||||||
}
|
}
|
||||||
}, [setUserpassword] )
|
}, [password] )
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|
||||||
|
@ -79,8 +79,9 @@ export function Signup ( props ) {
|
||||||
<Button
|
<Button
|
||||||
variant="primary"
|
variant="primary"
|
||||||
className="mt-3 w-100"
|
className="mt-3 w-100"
|
||||||
type="submit">Sign up
|
type="submit"
|
||||||
disabled={ !(validemail && validpassword && validusername) ? false : true }
|
disabled={ (validemail && validpassword && validusername) ? false : true }
|
||||||
|
>Sign up
|
||||||
</Button>
|
</Button>
|
||||||
</Form>
|
</Form>
|
||||||
</Col>
|
</Col>
|
||||||
|
|
Loading…
Reference in New Issue