Skip to content

Commit

Permalink
Apply request change
Browse files Browse the repository at this point in the history
  • Loading branch information
masum-ulu committed Sep 4, 2023
1 parent 07e42f9 commit 3dac4e6
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,9 @@ export class StatusCodeErrorHandlerService implements CustomHttpErrorHandlerServ

switch (this.status) {
case 401:
this.authService.navigateToLogin();
break;
case 404:
if (this.status === 401) {
this.authService.navigateToLogin();
return;
}

if (canCreateCustomError) {
this.showPage();
break;
Expand Down

0 comments on commit 3dac4e6

Please sign in to comment.