Skip to content

Commit

Permalink
feat: update registration status messages
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 29, 2024
1 parent 7a05025 commit 8488b54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/pages/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export const Register: Component = () => {
}).then((data) => {
setIsLoad(false);
if(data.ok){
setMsg("Successfully Created User")
setStatus("User Registration Successful!")
setMsg("Successfully Created User")
}
else if(data.status === 409){
setIsDup(true);
setMsg("User already present. Check your institute mail for credentials.")
setStatus("User Already Registered!")
setMsg("Check your institute mail for credentials")
}
else if(data.status == 401){
document.location = "https://heimdall.metakgp.org?redirect_url=https://naarad-signup.metakgp.org"
Expand Down

0 comments on commit 8488b54

Please sign in to comment.