Skip to content

Commit

Permalink
fix: conditional awarding date
Browse files Browse the repository at this point in the history
  • Loading branch information
tadejpodrekar committed Apr 24, 2024
1 parent 3e6ea97 commit bd7cd04
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,16 @@ export const EduCTX = ({ credential, title }: EduCTXProps) => {
{title.dates}
</h1>
<DisplayDate text="Issuance date" date={credential.issuanceDate} />
<DisplayDate
text="Awarding date"
date={
credential.credentialSubject?.achieved?.wasAwardedBy
?.awardingDate
}
/>
{credential.credentialSubject?.achieved?.wasAwardedBy
?.awardingDate && (
<DisplayDate
text="Awarding date"
date={
credential.credentialSubject?.achieved?.wasAwardedBy
?.awardingDate
}
/>
)}
{credential.expirationDate && (
<DisplayDate
text="Expiration date"
Expand Down

0 comments on commit bd7cd04

Please sign in to comment.