Skip to content

Commit c869ec5

Browse files
authored
Fix footer showing the actual star count instead of abbreviated number (#185)
Co-authored-by: Chris Tate <[email protected]>
1 parent 0ade297 commit c869ec5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/home-page-mobile-footer.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import { Button } from '@/components/ui/button'
44
import { GitHubIcon } from '@/components/icons/github-icon'
55
import { VERCEL_DEPLOY_URL } from '@/lib/constants'
6+
import { formatAbbreviatedNumber } from '@/lib/utils/format-number'
67

78
const GITHUB_REPO_URL = 'https://github.com/vercel-labs/coding-agent-template'
89

@@ -23,7 +24,7 @@ export function HomePageMobileFooter({ initialStars = 1056 }: HomePageMobileFoot
2324
className="flex items-center justify-center gap-2"
2425
>
2526
<GitHubIcon className="h-4 w-4" />
26-
<span className="text-sm font-medium">{initialStars.toLocaleString()}</span>
27+
<span className="text-sm font-medium">{formatAbbreviatedNumber(initialStars)}</span>
2728
</a>
2829
</Button>
2930

0 commit comments

Comments
 (0)