diff --git a/client/js/api.js b/client/js/api.js index 6f231245..21e25702 100644 --- a/client/js/api.js +++ b/client/js/api.js @@ -178,7 +178,7 @@ class Api extends events.EventTarget { return requestPromise; }) .catch(error => { - if (error.response.name === + if (error.response && error.response.name === 'MissingOrExpiredRequiredFileError') { for (let key of Object.keys(files)) { files[key].token = null;