Handle token refresh errors and tell the user the token has expired

This commit is contained in:
Calli
2024-05-19 17:52:01 +03:00
parent 5cf1605a72
commit 793f71476b
3 changed files with 19 additions and 1 deletions

View File

@@ -26,6 +26,13 @@ const PlanetaryIteractionTable = ({
}) => {
const theme = useTheme();
if (character.invalidToken)
return (
<p style={{ color: "red" }}>
Character token has expired. Relogin to fix.
</p>
);
return (
<StackItem width="100%">
<TableContainer component={Paper}>