Skip to content

Commit

Permalink
google auth again
Browse files Browse the repository at this point in the history
  • Loading branch information
thakiyudheen committed Jul 22, 2024
1 parent e27a7c0 commit 61d3209
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pages/auth/Signup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ const Signup: React.FC = () => {
navigator('/');
return;
}

if(location.state.role){

const signUpData: any = {
role: location.state.role,
email: response.payload.data.email,
password: response.payload.data.password,
username: response.payload.username,
isGauth: true
};
if(location.state.role){
navigator(location.state.role === 'student' ? '/userRegister' : '/instructorRegister', { state: signUpData });
}else {
toast.info('Please select the role !')
Expand Down

0 comments on commit 61d3209

Please sign in to comment.