Skip to content

Commit

Permalink
Added case for no link
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan1x authored Jun 30, 2024
1 parent 3dd343c commit 73be5bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function loadData(doc) {
tags.innerHTML = "<b>Tech-Stack</b> : " + doc.tags.join(", ");
repo.textContent = "Repo";

if (doc.link != "") {
if (doc.link) {
link.setAttribute("href", doc.link);
link.textContent = "Link";
btn.appendChild(link);
Expand Down

0 comments on commit 73be5bf

Please sign in to comment.