From c488682fe77aea458349331b0cd097c2871326b6 Mon Sep 17 00:00:00 2001 From: "Rayyan (Rayy)" Date: Tue, 12 Sep 2023 10:59:54 +0000 Subject: [PATCH] made a typo on indexOf where "O" was "0" --- src/pages/Signup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Signup.js b/src/pages/Signup.js index bb912a9..69dd55c 100644 --- a/src/pages/Signup.js +++ b/src/pages/Signup.js @@ -26,7 +26,7 @@ export function Signup ( props ) { }, [username] ) useEffect( () => { - if(useremail.index0f('@') > 0 ) { + if(useremail.indexOf('@') > 0 ) { setValidemail(true) } else {