Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Showing usage data in GB in the fetch table

atyabbin65c72f6cf5ac
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(