Skip to content

Commit

Permalink
fix(error): resolve error handler in case of server error (DEV-205) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kilchenmann committed Nov 5, 2021
1 parent 6bfe254 commit ff9d097
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/main/error/error-handler.service.ts
Expand Up @@ -23,7 +23,7 @@ export class ErrorHandlerService {
showMessage(error: ApiResponseError) {

// in case of (internal) server error
const apiServerError = (error.error && error.error['response'] && error.error['response'] === null);
const apiServerError = (error.error && !error.error['response']);

if ((error.status > 499 && error.status < 600) || apiServerError) {

Expand Down

0 comments on commit ff9d097

Please sign in to comment.