diff options
author | vantezzen <properly@protonmail.com> | 2019-08-26 22:09:27 +0200 |
---|---|---|
committer | vantezzen <properly@protonmail.com> | 2019-08-26 22:09:27 +0200 |
commit | 04c169c56da24ecd694521989d039ec0e7d29b49 (patch) | |
tree | cacf7d03f6f4e256a76b1ac3078a040c2c14c547 /src/stores/GlobalErrorStore.js | |
parent | Remove share popup (diff) | |
download | ferdium-app-04c169c56da24ecd694521989d039ec0e7d29b49.tar.gz ferdium-app-04c169c56da24ecd694521989d039ec0e7d29b49.tar.zst ferdium-app-04c169c56da24ecd694521989d039ec0e7d29b49.zip |
Fix random logout issues
Diffstat (limited to 'src/stores/GlobalErrorStore.js')
-rw-r--r-- | src/stores/GlobalErrorStore.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/stores/GlobalErrorStore.js b/src/stores/GlobalErrorStore.js index 7a85c2daa..8bdafb68c 100644 --- a/src/stores/GlobalErrorStore.js +++ b/src/stores/GlobalErrorStore.js | |||
@@ -24,9 +24,12 @@ export default class GlobalErrorStore extends Store { | |||
24 | this.response = {}; | 24 | this.response = {}; |
25 | } | 25 | } |
26 | if (this.error.status === 401) { | 26 | if (this.error.status === 401) { |
27 | this.actions.user.logout({ serverLogout: true }); | 27 | window.ferdi.stores.app.authRequestFailed = true; |
28 | // this.actions.user.logout({ serverLogout: true }); | ||
28 | } | 29 | } |
29 | } | 30 | } |
31 | } else { | ||
32 | window.ferdi.stores.app.authRequestFailed = false; | ||
30 | } | 33 | } |
31 | }); | 34 | }); |
32 | } | 35 | } |