From 65c72f6cf5ac9efe4931ef4a418e71d32be35d94 Mon Sep 17 00:00:00 2001 From: atyabbin Date: Thu, 27 Jun 2024 15:59:39 +0530 Subject: [PATCH] Showing usage data in GB in the fetch table --- infra/staff/src/App.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infra/staff/src/App.tsx b/infra/staff/src/App.tsx index aaac53273d..9aa819e130 100644 --- a/infra/staff/src/App.tsx +++ b/infra/staff/src/App.tsx @@ -103,6 +103,8 @@ export const App: React.FC = () => { displayValue = new Date(value / 1000).toLocaleString(); } else if (key === "storage" && typeof value === "number") { displayValue = `${(value / 1024 ** 3).toFixed(2)} GB`; + } else if (key === "usage" && typeof value === "number") { + displayValue = `${(value / 1024 ** 3).toFixed(2)} GB`; } else if (typeof value === "string") { try { const parsedValue = JSON.parse(