Skip to content

Commit

Permalink
Merge pull request #879 from 0xPolygonID/IN-132-fix-credential-issued…
Browse files Browse the repository at this point in the history
…-date-ui

fix: correct display of credential issued date in table
  • Loading branch information
martinsaporiti authored Dec 31, 2024
2 parents a0ff857 + 6975dc5 commit d51045c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/credentials/CredentialsTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export function CredentialsTable() {
{
dataIndex: "createdAt",
key: "createdAt",
render: (issuanceDate: Credential["issuanceDate"]) => (
render: (_, { issuanceDate }: Credential) => (
<Typography.Text>{formatDate(issuanceDate)}</Typography.Text>
),
sorter: {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/identities/IdentityAuthCredentials.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export function IdentityAuthCredentials({
{
dataIndex: "createdAt",
key: "createdAt",
render: (issuanceDate: AuthCredential["issuanceDate"]) => (
render: (_, { issuanceDate }: AuthCredential) => (
<Typography.Text>{formatDate(issuanceDate)}</Typography.Text>
),
sorter: ({ issuanceDate: a }, { issuanceDate: b }) => b.getTime() - a.getTime(),
Expand Down

0 comments on commit d51045c

Please sign in to comment.