From 77fb6c0d88e9889199c0e859dbade53f638ddfd4 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Fri, 26 May 2023 10:09:56 -0300 Subject: fix compile --- .../exchange-backoffice-ui/src/pages/AccountDetails.tsx | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'packages/exchange-backoffice-ui/src/pages/AccountDetails.tsx') 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; -- cgit v1.2.3