diff --git a/src/index.html b/src/index.html index 04bd19e..748549f 100644 --- a/src/index.html +++ b/src/index.html @@ -23,15 +23,15 @@ > - JobSimulator.Dev - Browse Challenges - Sign Up + JobSimulator.Dev + +
diff --git a/src/script.js b/src/script.js index 529f585..67ed321 100644 --- a/src/script.js +++ b/src/script.js @@ -26,10 +26,35 @@ addEventListener("submit", (event) => { let email = document.getElementById("email").value; // TODO: Show Correct Status Messages on Signup Form - // 1. successful signup + + // 2. empty email + if (email.length == 0){ + renderEmailEmptyError(); + return; + } // 3. taken email + for(let i=0; i