From 6975dc5ce3b20175fc5df02e076f9d5894299140 Mon Sep 17 00:00:00 2001 From: Oleksandr Raspopov Date: Mon, 30 Dec 2024 14:22:40 +0100 Subject: [PATCH] fix: correct display of credential issued date in table --- ui/src/components/credentials/CredentialsTable.tsx | 2 +- ui/src/components/identities/IdentityAuthCredentials.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/components/credentials/CredentialsTable.tsx b/ui/src/components/credentials/CredentialsTable.tsx index efd289d1..c6c64762 100644 --- a/ui/src/components/credentials/CredentialsTable.tsx +++ b/ui/src/components/credentials/CredentialsTable.tsx @@ -128,7 +128,7 @@ export function CredentialsTable() { { dataIndex: "createdAt", key: "createdAt", - render: (issuanceDate: Credential["issuanceDate"]) => ( + render: (_, { issuanceDate }: Credential) => ( {formatDate(issuanceDate)} ), sorter: { diff --git a/ui/src/components/identities/IdentityAuthCredentials.tsx b/ui/src/components/identities/IdentityAuthCredentials.tsx index d842cb05..9647a076 100644 --- a/ui/src/components/identities/IdentityAuthCredentials.tsx +++ b/ui/src/components/identities/IdentityAuthCredentials.tsx @@ -143,7 +143,7 @@ export function IdentityAuthCredentials({ { dataIndex: "createdAt", key: "createdAt", - render: (issuanceDate: AuthCredential["issuanceDate"]) => ( + render: (_, { issuanceDate }: AuthCredential) => ( {formatDate(issuanceDate)} ), sorter: ({ issuanceDate: a }, { issuanceDate: b }) => b.getTime() - a.getTime(),