Skip to content

Commit

Permalink
fix: correct display of credential issued date in table
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksandr Raspopov committed Dec 30, 2024
1 parent a0ff857 commit 6975dc5
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 6975dc5

Please sign in to comment.