Skip to content

Commit b07533e

Browse files
committed
feat: use project link if it exists, otherwise use the github sourcecode link
1 parent f2b2b32 commit b07533e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/projects/project-card/project-card.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const Dropdown = ({ isExpanded, onClick }: { isExpanded: boolean; onClick: () =>
106106

107107
// Main components ---------------------------------------------------------------------------------
108108
export default function ProjectCard({ project }: { project: ProjectMetadata }) {
109-
const href = project.links['github'];
109+
const href = project.link ? project.link : project.links['github'];
110110

111111
const [isExpanded, setExpanded] = useState(false);
112112

0 commit comments

Comments
 (0)