Skip to content

Commit

Permalink
fix: View Package & Release Clearing Details
Browse files Browse the repository at this point in the history
- Fix Modified by visibility in Package view
- Fix data handling in Release Clearing Details
  • Loading branch information
duonglq-tsdv committed Dec 11, 2024
1 parent f1a5bef commit 90d3306
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ const ClearingDetails = ({ release, releaseId, embeddedAttachments }: Props) : R
<td>
<ClearingInformationStatus
status={
release.clearingInformation ? release.clearingInformation.licenseAgreement : false
release.clearingInformation ? release.clearingInformation.legalEvaluation : false
}
/>
</td>
Expand All @@ -196,7 +196,7 @@ const ClearingDetails = ({ release, releaseId, embeddedAttachments }: Props) : R
<ClearingInformationStatus
status={
release.clearingInformation
? release.clearingInformation.licenseScanReportResult
? release.clearingInformation.licenseAgreement
: false
}
/>
Expand Down
6 changes: 3 additions & 3 deletions src/app/[locale]/packages/detail/[id]/components/Summary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,12 @@ export default function Summary({ summaryData }: { summaryData: Package }) : Rea
<td>{t('Modified By')}:</td>
<td>
{
summaryData._embedded?.modifiedBy &&
(summaryData.modifiedBy ?? '') &&
<Link
className={`text-link`}
href={`mailto:${summaryData._embedded.modifiedBy.email}`}
href={`mailto:${summaryData.modifiedBy}`}
>
{summaryData._embedded.modifiedBy.email}
{summaryData.modifiedBy}
</Link>
}
</td>
Expand Down

0 comments on commit 90d3306

Please sign in to comment.