Skip to content

Commit

Permalink
Fix Expiration ribbon display
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatrakazas committed Nov 29, 2024
1 parent 5c055f3 commit 9e4cd44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Credentials/CredentialImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const CredentialImage = ({ credential, className, onClick, showRibbon = true, vc
<img src={parsedCredential.credentialImage.credentialImageURL} alt={"Credential"} className={className} onClick={onClick} />
)}
{parsedCredential && showRibbon &&
<ExpiredRibbon parsedCredential={parsedCredential} />
<ExpiredRibbon parsedCredential={parsedCredential.beautifiedForm} />
}
{vcEntityInstances && showRibbon &&
<UsagesRibbon vcEntityInstances={vcEntityInstances} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Credentials/CredentialLayout.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const CredentialLayout = ({ children, title = null }) => {
if ('error' in c) {
return;
}
setIsExpired(CheckExpired(c.beautifiedForm.expiry_date ?? c.beautifiedForm.exp))
setIsExpired(CheckExpired(c.beautifiedForm.exp ?? c.beautifiedForm.expiry_date ))
setCredentialFriendlyName(c.credentialFriendlyName);
});
}, [vcEntity, container]);
Expand Down

0 comments on commit 9e4cd44

Please sign in to comment.