Skip to content

Commit

Permalink
add navigation to login page on succcessful sign up
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhagarwal1 committed Oct 9, 2024
1 parent affaf43 commit bbb4793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/components/signup-page/signup-page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class SignupComponent {
localStorage.setItem('users', JSON.stringify(users));

this.toastr.success("Sign-up successful! You can now log in.",'Success')

this.router.navigate(['/login']);
this.authService.signUp(signupData).subscribe(
(response: any) => {
this.router.navigate(['/main-index']);
Expand Down

0 comments on commit bbb4793

Please sign in to comment.