Skip to content
Snippets Groups Projects
Commit f7703ff9 authored by Léo Banno-Cloutier's avatar Léo Banno-Cloutier Committed by Sébastien Blin
Browse files

jams-react-client: fix react-error-overlay

Change-Id: I56736e0c0d643b1bcd56f93a8bd2af2143d8fe88
parent 50c2f5da
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
"i18next-parser": "^3.3.0", "i18next-parser": "^3.3.0",
"i18next-scanner": "^2.11.0", "i18next-scanner": "^2.11.0",
"prettier": "2.8.8", "prettier": "2.8.8",
"react-error-overlay": "^6.0.9" "react-error-overlay": "6.0.9"
}, },
"browserslist": { "browserslist": {
"production": [ "production": [
......
...@@ -173,12 +173,17 @@ class Auth { ...@@ -173,12 +173,17 @@ class Auth {
checkForUpdates(cb) { checkForUpdates(cb) {
if (this.installed && this.authenticated) { if (this.installed && this.authenticated) {
axios( axios(configApiCall(api_path_get_subscription_status, "GET", null, null))
configApiCall(api_path_get_subscription_status, "GET", null, null) .then((response) => {
).then((response) => { this.activated = response.data["activated"];
this.activated = response.data["activated"]; cb();
cb(); })
}); .catch((error) => {
if (error.response.status === 401) {
this.authenticated = false;
}
cb();
});
} else { } else {
axios( axios(
configApiCall(api_path_get_install_lastKnownStep, "GET", null, null) configApiCall(api_path_get_install_lastKnownStep, "GET", null, null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment