From 8d534c004b839cc61c557b4bfa9e551e1a7c4feb Mon Sep 17 00:00:00 2001 From: Jennifer Echenim Date: Mon, 8 Jan 2024 14:12:12 +0400 Subject: [PATCH] [Tenscan] fix latest batch (#1704) * update latest batch number --- .../frontend/src/components/modules/dashboard/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/tenscan/frontend/src/components/modules/dashboard/index.tsx b/tools/tenscan/frontend/src/components/modules/dashboard/index.tsx index f32bacfa08..2cee6cfa43 100644 --- a/tools/tenscan/frontend/src/components/modules/dashboard/index.tsx +++ b/tools/tenscan/frontend/src/components/modules/dashboard/index.tsx @@ -46,7 +46,9 @@ export default function Dashboard() { }, { title: "Latest L2 Batch", - value: batches?.result?.Total || "N/A", + value: latestBatch?.item?.number + ? Number(latestBatch.item.number) + : "N/A", // TODO: add change // change: "+20.1%", icon: LayersIcon,