Skip to content

Commit 0dff0af

Browse files
committed
fix(project-card): fixed link display logic in project card component
1 parent 291375b commit 0dff0af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/cards/project/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { fetcher } from '~/utils/misc'
1818
export function ProjectCard({ project }: { project: (typeof PROJECTS)[0] }) {
1919
const { title, description, imgSrc, url, repo, builtWith, links } = project
2020
const { data: repository } = useSWR<GithubRepository>(`/api/github?repo=${repo}`, fetcher)
21-
const href = repository?.url || url
21+
const href = url || repository?.url
2222
const lang = repository?.languages?.[0]
2323

2424
return (

0 commit comments

Comments
 (0)