Fix eslint issues

Signed-off-by: Émile Ré <nemile.re@gmail.com>
This commit is contained in:
Émile Ré
2025-12-03 18:29:05 +04:00
parent e2ef4b005d
commit 9265ad69eb
19 changed files with 72 additions and 63 deletions

View File

@@ -47,10 +47,10 @@ export default function LoginPage() {
}
window.location.href = "/";
} catch (e: any) {
} catch (e: unknown) {
toast({
title: __("Error"),
description: e.message as string,
description: e instanceof Error ? e.message : __("Failed to login"),
variant: "error",
});
} finally {
@@ -90,10 +90,10 @@ export default function LoginPage() {
} else {
throw new Error(__("SSO not available for this email domain"));
}
} catch (e: any) {
} catch (e: unknown) {
toast({
title: __("Error"),
description: e.message as string,
description: e instanceof Error ? e.message : __("Failed to login"),
variant: "error",
});
} finally {