Skip to content

Commit

Permalink
navigation created
Browse files Browse the repository at this point in the history
  • Loading branch information
haiderBukhari committed May 7, 2024
1 parent a8ba6b5 commit 460ba2a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Authentication/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export default function Login() {
jwtToken: res.data.token,
isAdmin: res.data.name === 'Admin' ? true : false
}))
Navigate('/game')
if(res.data.name === 'Admin'){
Navigate('/trial-management')
}else{
Navigate('/game')
}
}
}).catch((err) => {
console.error(err)
Expand Down

0 comments on commit 460ba2a

Please sign in to comment.