diff options
Diffstat (limited to 'webapp/client')
-rw-r--r-- | webapp/client/client.jsx | 2 | ||||
-rw-r--r-- | webapp/client/web_client.jsx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/webapp/client/client.jsx b/webapp/client/client.jsx index c2db8a275..370d40ac0 100644 --- a/webapp/client/client.jsx +++ b/webapp/client/client.jsx @@ -210,7 +210,7 @@ export default class Client { } if (successCallback) { - if (res && res.body) { + if (res && res.body !== undefined) { // eslint-disable-line no-undefined successCallback(res.body, res); } else { console.error('Missing response body for ' + methodName); // eslint-disable-line no-console diff --git a/webapp/client/web_client.jsx b/webapp/client/web_client.jsx index 324d4cd25..53e199e66 100644 --- a/webapp/client/web_client.jsx +++ b/webapp/client/web_client.jsx @@ -38,7 +38,7 @@ class WebClientClass extends Client { } handleError(err, res) { - if (res.body.id === 'api.context.mfa_required.app_error') { + if (res && res.body && res.body.id === 'api.context.mfa_required.app_error') { window.location.reload(); return; } |