made a typo on indexOf where "O" was "0"
This commit is contained in:
parent
fcdc2339d7
commit
c488682fe7
|
@ -26,7 +26,7 @@ export function Signup ( props ) {
|
|||
}, [username] )
|
||||
|
||||
useEffect( () => {
|
||||
if(useremail.index0f('@') > 0 ) {
|
||||
if(useremail.indexOf('@') > 0 ) {
|
||||
setValidemail(true)
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue