From 5e9b7412f53ccf73863acb4126d4f6300b31f159 Mon Sep 17 00:00:00 2001 From: nikolai-deriv Date: Wed, 15 Dec 2021 15:58:22 +0300 Subject: [PATCH] fix catch error parameter --- src/common/integrations/GoogleDrive.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/integrations/GoogleDrive.js b/src/common/integrations/GoogleDrive.js index dadd69c2e1..c2a6164130 100644 --- a/src/common/integrations/GoogleDrive.js +++ b/src/common/integrations/GoogleDrive.js @@ -155,7 +155,7 @@ class GoogleDrive { } }) .catch(e => { - if (error.status && error.status === 401) { + if (e.status && e.status === 401) { this.signOut(); }