fix: resolve frontend lint issues
All checks were successful
Tests / Backend - Tests passed: 8
THE-TIP-TOP-MULTIBRANCH/pipeline/head This commit looks good

This commit is contained in:
2026-08-17 14:54:58 +00:00
parent 0f1ad0b2ef
commit 047d34f59b
6 changed files with 85 additions and 96 deletions

View File

@@ -50,7 +50,20 @@ export default function MesGains() {
}
}, [handleAuthError])
useEffect(() => { fetchGains() }, [fetchGains])
useEffect(() => {
const loadGains = async () => {
try {
const data = await myGainsApi()
setGains(data.gains)
} catch (err) {
if (!handleAuthError(err)) setError(err.message)
} finally {
setLoading(false)
}
}
loadGains()
}, [handleAuthError])
return (
<div className="min-h-screen bg-gray-50 flex flex-col px-8 py-12 max-w-lg mx-auto">