diff --git a/trivia-forge/frontend/src/Pages/LoginPage.jsx b/trivia-forge/frontend/src/Pages/LoginPage.jsx index 64c97b7..79f2ce8 100644 --- a/trivia-forge/frontend/src/Pages/LoginPage.jsx +++ b/trivia-forge/frontend/src/Pages/LoginPage.jsx @@ -18,7 +18,7 @@ function LoginPage() { // call getUser function to validate user credentials const user = await getUser(email, password); // user doesn't exist - if (!user) { + if (user.error !== undefined) { alert('Error logging in: Invalid email or password'); return; }