@@ -38,7 +38,7 @@ export function setupAxios() { window.location.href = '/network-error' } - if (error.response.status === 401) { + if (error?.response?.status === 401 || error?.status === 401) { signOut({ callbackUrl: '/login' }) } return error