Skip to content

Commit

Permalink
fix: redirect to login at 418; already registered user
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Aug 13, 2024
1 parent c39fc5c commit ddcaa58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export const Register: Component = () => {
{ duration: 3000 }
);
}
} else if (data.status === 409) {
} else if (data.status === 409 || data.status === 418) {
setIsLoad(false);
setStatus("User Already Registered");
setMsg("Search your institute email for credentials");
Expand Down

0 comments on commit ddcaa58

Please sign in to comment.