fix: improve error handling and type safety

- Replaced 'any' types with proper TypeScript types
- Improved error handling with instanceof checks
- Removed unused imports (calculateExpectedTeamScore)
- Updated error messages to be more descriptive
- Removed deprecated eslint.config.mjs file
This commit is contained in:
2026-03-29 21:20:40 -07:00
parent 576dfda619
commit c9415d490e
11 changed files with 30 additions and 54 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export default function LoginPage() {
// Navigate to admin page - Better Auth will handle session update
router.push("/admin")
}
} catch (err) {
} catch {
setError("An unexpected error occurred")
} finally {
setLoading(false)