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] )
useEffect( () => {
if( setUserpassword.length >= 8 ) {
if( password.length >= 8 ) {
setValidpassword(true)
}
else{
setValidpassword(false)
}
}, [setUserpassword] )
}, [password] )
return (
@ -79,8 +79,9 @@ export function Signup ( props ) {
<Button
variant="primary"
className="mt-3 w-100"
type="submit">Sign up
disabled={ !(validemail && validpassword && validusername) ? false : true }
type="submit"
disabled={ (validemail && validpassword && validusername) ? false : true }
>Sign up
</Button>
</Form>
</Col>