Various repairs to code

This commit is contained in:
Ray 2023-09-12 11:08:05 +00:00 committed by GitHub
parent c488682fe7
commit 15261499de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 4 deletions

View File

@ -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>