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 @@
"i18next-parser": "^3.3.0",
"i18next-scanner": "^2.11.0",
"prettier": "2.8.8",
"react-error-overlay": "^6.0.9"
"react-error-overlay": "6.0.9"
},
"browserslist": {
"production": [
......
......@@ -173,12 +173,17 @@ class Auth {
checkForUpdates(cb) {
if (this.installed && this.authenticated) {
axios(
configApiCall(api_path_get_subscription_status, "GET", null, null)
).then((response) => {
this.activated = response.data["activated"];
cb();
});
axios(configApiCall(api_path_get_subscription_status, "GET", null, null))
.then((response) => {
this.activated = response.data["activated"];
cb();
})
.catch((error) => {
if (error.response.status === 401) {
this.authenticated = false;
}
cb();
});
} else {
axios(
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