diff --git a/src/components/default/LatestBlocks/LatestBlocks.tsx b/src/components/default/LatestBlocks/LatestBlocks.tsx index 21133d1..2ea023e 100644 --- a/src/components/default/LatestBlocks/LatestBlocks.tsx +++ b/src/components/default/LatestBlocks/LatestBlocks.tsx @@ -88,6 +88,8 @@ function LatestBlocks({ fetchedInfo, fetchedLatestBlocks }: { fetchedInfo: Info const tableHeaders = [ "HEIGHT", "TIMESTAMP (UTC)", "AGE", "SIZE", "TRANSACTIONS", "HASH" ]; const tableElements = blocks.map(e => { + console.log(e); + const hash = e.hash; const hashLink = hash ? "/block/" + hash : "/"; return [ diff --git a/src/interfaces/common/BlockInfo.ts b/src/interfaces/common/BlockInfo.ts index 151ebdf..188d148 100644 --- a/src/interfaces/common/BlockInfo.ts +++ b/src/interfaces/common/BlockInfo.ts @@ -1,7 +1,7 @@ interface BlockInfo { type: "PoS" | "PoW"; - timestamp?: Date; - actualTimestamp?: BigInt; + timestamp?: string; + actualTimestamp?: string; difficulty: string; minerTextInfo?: string; cummulativeDiffAdjusted?: string; diff --git a/src/pages/block/[hash].tsx b/src/pages/block/[hash].tsx index 5bd47b9..99e217a 100644 --- a/src/pages/block/[hash].tsx +++ b/src/pages/block/[hash].tsx @@ -154,7 +154,7 @@ function Block(props: BlockProps) {