Skip to content

Commit

Permalink
check homepage isnt null lol
Browse files Browse the repository at this point in the history
  • Loading branch information
sisby-folk committed Mar 2, 2025
1 parent a68b1ae commit f4d333f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ export function getLink(submission: Submission) {
return `https://modrinth.com/project/${data.project_id}`;
} else if (submission.platform?.type === "other") {
const data = submission.platform as OtherData;
return `${data.homepage_url}`;
if (data.homepage_url) {
return `${data.homepage_url}`;
}
}
}

Expand Down

0 comments on commit f4d333f

Please sign in to comment.