Skip to content

Commit

Permalink
Merge pull request #1441 from RodriSanchez1/fix/apiErrorHandler
Browse files Browse the repository at this point in the history
Fix api error handler
  • Loading branch information
martinbedouret authored Apr 10, 2023
2 parents 5343814 + 6ac6d13 commit 22627d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class API {
response => response,
error => {
if (
error.response.status === 403 &&
error.config.baseURL === BASE_URL
error.response?.status === 403 &&
error.config?.baseURL === BASE_URL
) {
if (isAndroid()) {
window.plugins.googleplus.disconnect(function(msg) {
Expand Down

0 comments on commit 22627d7

Please sign in to comment.