We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7b8fc8 commit d5a12f1Copy full SHA for d5a12f1
1 file changed
src/pages/ContributorProfile/ContributorProfile.tsx
@@ -27,6 +27,7 @@ export default function ContributorProfile() {
27
try {
28
const userRes = await fetch(`https://api.github.com/users/${username}`);
29
const userData = await userRes.json();
30
+ if (userData.message) throw new Error(userData.message);
31
setProfile(userData);
32
33
const prsRes = await fetch(
0 commit comments