@@ -4,13 +4,13 @@ import type { Route } from 'next';
44import Link from 'next/link' ;
55import type { FC , ReactNode } from 'react' ;
66
7- import { Badge } from '@/components/ui/badge' ;
8- import { cn } from '@/lib/utils' ;
9- import type { Repository } from '@/types/generated/graphql' ;
107import { ProfileCard , ProfileCardContent , ProfileCardHeader } from '../../components/profile-card' ;
118import { RepositoryDetail } from './repository-detail' ;
129import { RepositoryLanguages } from './repository-languages' ;
1310import { RepositoryTopLanguage } from './repository-top-language' ;
11+ import { Badge } from '@/components/ui/badge' ;
12+ import { cn } from '@/lib/utils' ;
13+ import type { Repository } from '@/types/generated/graphql' ;
1414
1515type RepositoryCardProps = {
1616 repository ?: Repository | null ;
@@ -66,7 +66,7 @@ export const RepositoryCard: FC<RepositoryCardProps> = ({
6666 < div className = "flex gap-4" >
6767 { type === 'contribution' && < RepositoryTopLanguage languages = { repository . languages } /> }
6868 < RepositoryDetail Icon = { Star } value = { stargazerCount } />
69- < RepositoryDetail Icon = { Split } value = { forkCount } />
69+ < RepositoryDetail Icon = { Split } value = { forkCount ?? 0 } />
7070 { ! ! releasesCount && < RepositoryDetail Icon = { Package } value = { releasesCount } /> }
7171 </ div >
7272
0 commit comments