diff --git a/screens/GitHub.png b/screens/GitHub.png index 6bb766b9a7..84624bb222 100644 Binary files a/screens/GitHub.png and b/screens/GitHub.png differ diff --git a/src/common/hooks/useContributors.js b/src/common/hooks/useContributors.js index a08e6b04a5..0518a091b2 100644 --- a/src/common/hooks/useContributors.js +++ b/src/common/hooks/useContributors.js @@ -13,8 +13,14 @@ const useContributors = (sorted) => { try { const response = await fetch(`https://api.github.com/repos/atapas/react-play/contributors`); const responseData = await response.json(); - sorted && responseData.sort((a, b) => b.contributions - a.contributions); - setData(responseData); + + // Remove the bots + const contributors = responseData.filter(contributor => contributor.type !== 'Bot'); + + // Sort it by the contributions + sorted && contributors.sort((a, b) => b.contributions - a.contributions); + + setData(contributors); setIsLoading(false); } catch (error) { setError(error);