Skip to content

Commit

Permalink
add alert when can’t load user
Browse files Browse the repository at this point in the history
  • Loading branch information
hsteuernagel committed Aug 7, 2024
1 parent 17589cd commit 678f5c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions public/js/src/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ apolloClient.query({ query: MeQuery })
});
}
})
.catch(() => {
alert('There was an error loading the page. The page not work as expected. Please refresh the page.');
})
.finally(() => {

rootStore.ready();
Expand Down
3 changes: 3 additions & 0 deletions public/js/src/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ apolloClient.query({ query: MeQuery })
});
}
})
.catch(() => {
alert('There was an error loading the page. The page not work as expected. Please refresh the page.');
})
.finally(() => {
rootStore.ready();

Expand Down

0 comments on commit 678f5c9

Please sign in to comment.