From 6ac6d130bf61ace0704fdaaf07339a1a8540d76b Mon Sep 17 00:00:00 2001 From: Rodri Sanchez Date: Wed, 5 Apr 2023 18:47:41 -0300 Subject: [PATCH] Fix api error handler --- src/api/api.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/api.js b/src/api/api.js index 93ea8f130..58851e8aa 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -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) {