diff --git a/lib/web/src/actions/userActions.js b/lib/web/src/actions/userActions.js index f1bf291..15c781a 100644 --- a/lib/web/src/actions/userActions.js +++ b/lib/web/src/actions/userActions.js @@ -80,7 +80,7 @@ export function getUserProfile (callback) { }) .catch((error) => { if (error.response) { - if (error.response.status === 403) { + if (error.response.status === 401) { window.localStorage.removeItem('errsole-jwt-token'); const { protocol, hostname, port, pathname } = window.location; const path = `${protocol}//${hostname}${port ? ':' + port : ''}${pathname}`;