Skip to content

Commit

Permalink
fix: Handle password field validation in LoginForm
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinashe-Austin committed Aug 6, 2024
1 parent 8365eb2 commit fcda023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/occupi-web/src/pages/Login/LoginForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const LoginForm = (): JSX.Element => {
return;
}

if(!window.PublicKeyCredential){
if(!window.PublicKeyCredential || form.password !== "" ) {
if (form.password === "") {
setError("Please fill in password field");
setIsLoading(false);
Expand Down

0 comments on commit fcda023

Please sign in to comment.