made a typo on indexOf where "O" was "0"

This commit is contained in:
Ray 2023-09-12 10:59:54 +00:00 committed by GitHub
parent fcdc2339d7
commit c488682fe7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ export function Signup ( props ) {
}, [username] ) }, [username] )
useEffect( () => { useEffect( () => {
if(useremail.index0f('@') > 0 ) { if(useremail.indexOf('@') > 0 ) {
setValidemail(true) setValidemail(true)
} }
else { else {