remove error, unused

This commit is contained in:
proddy
2024-07-06 12:34:41 +02:00
parent c795eea436
commit 2e6add0dac
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ const Authentication: FC<RequiredChildrenProps> = ({ children }) => {
const decodedMe = AuthenticationApi.decodeMeJWT(accessToken);
setMe(decodedMe);
toast.success(LL.LOGGED_IN({ name: decodedMe.username }));
} catch (error) {
} catch {
setMe(undefined);
throw new Error('Failed to parse JWT');
}

View File

@@ -21,7 +21,7 @@ const RestartMonitor: FC = () => {
try {
await send();
document.location.href = '/';
} catch (error) {
} catch {
if (new Date().getTime() < timeoutAt.current) {
setTimeoutId(setTimeout(poll.current, POLL_INTERVAL));
} else {