Small fool proofing

This commit is contained in:
2025-12-09 09:48:21 +01:00
parent c1125898f8
commit 4fc62d6045
2 changed files with 32 additions and 17 deletions
+13 -12
View File
@@ -159,18 +159,19 @@ export default function PinnedRepos() {
return (
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4 sm:gap-6 bg-transparent">
{pinned.map((repo, i) => (
<Repo
key={i}
author={repo.author}
name={repo.name}
description={repo.description}
language={repo.language}
stars={repo.stars}
forks={repo.forks}
href={`https://github.com/${repo.author}/${repo.name}`}
/>
))}
{pinned &&
pinned.map((repo, i) => (
<Repo
key={i}
author={repo.author}
name={repo.name}
description={repo.description}
language={repo.language}
stars={repo.stars}
forks={repo.forks}
href={`https://github.com/${repo.author}/${repo.name}`}
/>
))}
</div>
);
} catch (e: any) {