From b6449f3870f00eb1f587430ef210c319ccc68ed4 Mon Sep 17 00:00:00 2001 From: jejolare Date: Wed, 2 Oct 2024 23:07:00 +0700 Subject: [PATCH] fix timestamp in pool --- src/components/default/TransactionPool/TransactionPool.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/default/TransactionPool/TransactionPool.tsx b/src/components/default/TransactionPool/TransactionPool.tsx index d845943..40e47e0 100644 --- a/src/components/default/TransactionPool/TransactionPool.tsx +++ b/src/components/default/TransactionPool/TransactionPool.tsx @@ -78,8 +78,8 @@ function TransactionPool({ } const tableElements = poolElements.map((element) => ([ - timestampToLocalDate(new Date(element.timestamp).getTime()), - timeAgo(new Date(element.timestamp).getTime()), + timestampToLocalDate(new Date(parseInt(element.timestamp, 10)).getTime()), + timeAgo(new Date(parseInt(element.timestamp, 10)).getTime()), element.blob_size + " bytes", parseInt(element.fee, 10)/10**12, {element.tx_id}