Skip to content

Commit

Permalink
Fix #13: No user error message displayed when login fails
Browse files Browse the repository at this point in the history
  • Loading branch information
MARZOOQUE authored and georgepadayatti committed Dec 14, 2023
1 parent 1cc6752 commit ad94de3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/authorization/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@ class Auth {
})
.then(this.parseAuthenticationResponse)
.catch(error => {
console.error("Error occured while login: ", error);
// console.error("Error occured while login: ", error.response.data.errorDescription);
// Save error to the store
if (error.response) {
this.store.authStore.error = error.response.data.error_description
this.store.authStore.error = error.response.data.errorDescription
} else { this.store.authStore.error = error.message; }
// Hide loader
this.store.authStore.isLoading = false;
Expand Down

0 comments on commit ad94de3

Please sign in to comment.