Skip to content

Commit

Permalink
Fixed bug in interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushiichouhan committed Jun 20, 2023
1 parent 1c9c51b commit 246646c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/interceptor/error.interceptor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ export class ErrorInterceptor implements HttpInterceptor {
}
break;
case 401:
this.toastr.error('Unauthorised', error.status.toString());
this.toastr.error('Unauthorised');
break;
case 403:
this.toastr.error('Forbidden', error.status.toString());
this.toastr.error('Forbidden');
break;
case 404:
this.router.navigateByUrl('/not-found');
Expand Down

0 comments on commit 246646c

Please sign in to comment.