Skip to content

Commit

Permalink
changes 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghav Gupta 2 authored and Raghav Gupta 2 committed Jan 23, 2025
1 parent ac51310 commit dccbf0c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/src/pages/ProjectDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,10 @@ const ProjectDetailsPage = () => {
<div key={index} className="mb-4 rounded-lg bg-gray-200 p-4 dark:bg-gray-700">
<h3 className="font-semibold">
<a
href={`https://github.com/OWASP/${issue.repository.key}/issues/${issue.number}`}
href={
issue.repository &&
`https://github.com/OWASP/${issue.repository.key}/issues/${issue.number}`
}
target="_blank"
rel="none"
className="text-[#1d7bd7] hover:underline dark:text-sky-600"
Expand Down Expand Up @@ -277,7 +280,6 @@ const ProjectDetailsPage = () => {
<p>No recent issues.</p>
)}
</div>

<div className="rounded-lg bg-gray-100 p-6 shadow-md dark:bg-gray-800">
<h2 className="mb-4 text-2xl font-semibold">Recent Releases</h2>
{project.releases && project.releases.length > 0 ? (
Expand Down

0 comments on commit dccbf0c

Please sign in to comment.