diff options
Diffstat (limited to 'packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx')
-rw-r--r-- | packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx b/packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx index 8b9b01ae6..b252d2ab0 100644 --- a/packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx +++ b/packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx @@ -126,24 +126,14 @@ function getEventsFromAmlHistory( prev.push({ type: "kyc-collection", title: "collection" as TranslatedString, - when: { - t_ms: - k.collection_time.t_s === "never" - ? "never" - : k.collection_time.t_s * 1000, - }, + when: AbsoluteTime.fromProtocolTimestamp(k.collection_time), values: !k.attributes ? {} : k.attributes, provider: k.provider_section, }); prev.push({ type: "kyc-expiration", title: "expired" as TranslatedString, - when: { - t_ms: - k.expiration_time.t_s === "never" - ? "never" - : k.expiration_time.t_s * 1000, - }, + when: AbsoluteTime.fromProtocolTimestamp(k.expiration_time), fields: !k.attributes ? [] : Object.keys(k.attributes), }); return prev; |