diff --git a/src/pages/ContributorProfile/ContributorProfile.tsx b/src/pages/ContributorProfile/ContributorProfile.tsx index ed1b714d..4179d327 100644 --- a/src/pages/ContributorProfile/ContributorProfile.tsx +++ b/src/pages/ContributorProfile/ContributorProfile.tsx @@ -27,6 +27,7 @@ export default function ContributorProfile() { try { const userRes = await fetch(`https://api.github.com/users/${username}`); const userData = await userRes.json(); + if (!userRes.ok) throw new Error(userData.message || `HTTP error: ${userRes.status}`); setProfile(userData); const prsRes = await fetch(