Skip to content

Commit a76c0e2

Browse files
author
naterfute
committed
fix: removed pyrohost/pyrodactyl from star calculation
1 parent ebfa083 commit a76c0e2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/components/ui/GitHubStats.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ export function GitHubStats() {
99
useEffect(() => {
1010
Promise.all([
1111
fetch('https://api.eva.pink/api/stars/pyrodactyl-oss/pyrodactyl').then(r => r.json()),
12-
fetch('https://api.eva.pink/api/stars/pyrohost/pyrodactyl').then(r => r.json()),
1312
])
14-
.then(([repo1, repo2]) => {
15-
setStars((repo1.stars || 0) + (repo2.stars || 0));
13+
.then(([repo1]) => {
14+
setStars((repo1.stars || 0));
1615
})
1716
.catch(console.error);
1817
}, []);

0 commit comments

Comments
 (0)