Skip to content

Commit

Permalink
Fix GitHub stars button when API errors (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanchapman authored Mar 4, 2024
1 parent a030da8 commit dcda60b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions website/src/components/StarOnGithub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ export function StarOnGithub({ stars = 0 }: StarOnGithubProps) {
>
<GithubLogo className="h-5 w-5" />
Star on GitHub
{stars && (
<div className="inline-flex h-7 items-center gap-1.5 rounded-xl border border-gravel-200 bg-gravel-50 px-2.5">
<Star className="h-4 w-4" />
<div className="inline-flex h-7 items-center gap-1.5 rounded-xl border border-gravel-200 bg-gravel-50 px-2.5">
<Star className="h-4 w-4" />
{stars > 50 ? (
<span ref={countUpRef} className="text-sm tabular-nums" />
</div>
)}
) : null}
</div>
</ButtonLink>
)
}

0 comments on commit dcda60b

Please sign in to comment.