Skip to content

Commit

Permalink
Merge pull request #96 from Aditya-Kerkar/master
Browse files Browse the repository at this point in the history
Removed the "Unauthorized" modal
  • Loading branch information
mrrishimeena authored Sep 18, 2024
2 parents 1725d73 + 2b8cc15 commit 591b9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/web/src/actions/userActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`;
Expand Down

0 comments on commit 591b9fa

Please sign in to comment.