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); const decodedMe = AuthenticationApi.decodeMeJWT(accessToken);
setMe(decodedMe); setMe(decodedMe);
toast.success(LL.LOGGED_IN({ name: decodedMe.username })); toast.success(LL.LOGGED_IN({ name: decodedMe.username }));
} catch (error) { } catch {
setMe(undefined); setMe(undefined);
throw new Error('Failed to parse JWT'); throw new Error('Failed to parse JWT');
} }

View File

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