Skip to content

Commit cd813ee

Browse files
Merge pull request #84 from praliptarajoo/new-main
condition added for NA in github and document link
2 parents 752de64 + 0d83638 commit cd813ee

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/projects/components/ProjectCard.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ export default function ProjectCard({
2727
</p>
2828
{(githubUrl || documentationUrl) && (
2929
<div className='flex gap-4 justify-end mt-6 pt-6 border-t-2'>
30-
{githubUrl && (
30+
{githubUrl && githubUrl !== "NA" ? (
3131
<Link href={githubUrl!} target='_blank'>
3232
<Image src={github} height={20} width={20} alt='facebook_img' />
3333
</Link>
34-
)}
35-
{documentationUrl && (
36-
<Link href={documentationUrl ?? ""} target='_blank'>
34+
) : null}
35+
{documentationUrl && documentationUrl !== "NA" ? (
36+
<Link href={documentationUrl} target='_blank'>
3737
<Image src={redirect} height={20} width={20} alt='facebook_img' />
3838
</Link>
39-
)}
39+
) : null}
4040
</div>
4141
)}
4242
</div>

0 commit comments

Comments
 (0)